From 262202d43f56f1f7f0ab9988383588e40dbf4299 Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Sat, 11 Jul 2020 12:43:32 +0100 Subject: [PATCH 1/2] Fixed xdebug version for PHP 5.6 and 7.0 --- src/extensions.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/extensions.ts b/src/extensions.ts index e7d5828f..f827a205 100644 --- a/src/extensions.ts +++ b/src/extensions.ts @@ -13,7 +13,10 @@ export async function getXdebugVersion(version: string): Promise { 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'; } From 04376074d2276f56e8cbfe5a0de0d676a23631bc Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Sat, 11 Jul 2020 12:57:07 +0100 Subject: [PATCH 2/2] Update extensions.test.ts --- __tests__/extensions.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__tests__/extensions.test.ts b/__tests__/extensions.test.ts index aa013bab..4d95e26a 100644 --- a/__tests__/extensions.test.ts +++ b/__tests__/extensions.test.ts @@ -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(