Skip to content

Commit 37966ba

Browse files
committed
Playground - test PHP 8.5
1 parent 7ed2b07 commit 37966ba

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

playground-api/handler.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ async function analyseResult(request: HttpRequest): Promise<HttpResponse> {
246246
runStrictRules,
247247
runBleedingEdge,
248248
treatPhpDocTypesAsCertain,
249-
[70200, 70300, 70400, 80000, 80100, 80200, 80300, 80400],
249+
[70200, 70300, 70400, 80000, 80100, 80200, 80300, 80400, 80500],
250250
);
251251
const response: any = {
252252
tabs: createTabs(versionedErrors),
@@ -317,6 +317,9 @@ async function retrieveResult(request: HttpRequest): Promise<HttpResponse> {
317317
if (!phpVersionsToAnalyse.includes(80400)) {
318318
phpVersionsToAnalyse.push(80400);
319319
}
320+
if (!phpVersionsToAnalyse.includes(80500)) {
321+
phpVersionsToAnalyse.push(80500);
322+
}
320323

321324
const newResult = await analyseResultInternal(
322325
json.code,
@@ -470,7 +473,7 @@ async function retrieveLegacyResult(request: HttpRequest): Promise<HttpResponse>
470473
false,
471474
false,
472475
true,
473-
[70200, 70300, 70400, 80000, 80100, 80200, 80300, 80400],
476+
[70200, 70300, 70400, 80000, 80100, 80200, 80300, 80400, 80500],
474477
);
475478

476479
return Promise.resolve({

0 commit comments

Comments
 (0)