Merge pull request #244 from GrahamCampbell/patch-1

Fixed Xdebug version for PHP 5.6 and 7.0
This commit is contained in:
Shivam Mathur 2020-07-11 18:28:59 +05:30 committed by GitHub
commit 8ba779d78e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -5,7 +5,7 @@ describe('Extension tests', () => {
expect(await extensions.getXdebugVersion('5.3')).toContain('2.2.7');
expect(await extensions.getXdebugVersion('5.4')).toContain('2.4.1');
expect(await extensions.getXdebugVersion('5.5')).toContain('2.5.5');
expect(await extensions.getXdebugVersion('5.6')).toContain('2.9.6');
expect(await extensions.getXdebugVersion('7.2')).toContain('2.9.6');
});
it('checking addExtensionOnWindows', async () => {
let win32: string = await extensions.addExtension(

View File

@ -13,7 +13,10 @@ export async function getXdebugVersion(version: string): Promise<string> {
case '5.4':
return '2.4.1';
case '5.5':
case '5.6':
return '2.5.5';
case '7.0':
return '2.7.2';
default:
return '2.9.6';
}