Skip to content

Commit 683ff3f

Browse files
committed
fix legacy tests
1 parent c717ff6 commit 683ff3f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/PHPStan/Analyser/LegacyNodeScopeResolverTest.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ public function dataAssignInIf(): array
302302
$testScope,
303303
'matches',
304304
TrinaryLogic::createYes(),
305-
'(0 is 256 ? array<array{string, int<-1, max>}> : (0 is 512 ? array<string|null> : (0 is 768 ? array<array{null, -1}|array{string, int<0, max>}> : array<string>)))',
305+
'array<string>',
306306
],
307307
[
308308
$testScope,
@@ -343,7 +343,7 @@ public function dataAssignInIf(): array
343343
$testScope,
344344
'matches2',
345345
TrinaryLogic::createMaybe(),
346-
'(0 is 256 ? array<array{string, int<-1, max>}> : (0 is 512 ? array<string|null> : (0 is 768 ? array<array{null, -1}|array{string, int<0, max>}> : array<string>)))',
346+
'array<string>',
347347
],
348348
[
349349
$testScope,
@@ -355,13 +355,13 @@ public function dataAssignInIf(): array
355355
$testScope,
356356
'matches3',
357357
TrinaryLogic::createYes(),
358-
'(0 is 256 ? array<array{string, int<-1, max>}> : (0 is 512 ? array<string|null> : (0 is 768 ? array<array{null, -1}|array{string, int<0, max>}> : array<string>)))',
358+
'array<string>',
359359
],
360360
[
361361
$testScope,
362362
'matches4',
363363
TrinaryLogic::createMaybe(),
364-
'(0 is 256 ? array<array{string, int<-1, max>}> : (0 is 512 ? array<string|null> : (0 is 768 ? array<array{null, -1}|array{string, int<0, max>}> : array<string>)))',
364+
'array<string>',
365365
],
366366
[
367367
$testScope,
@@ -415,7 +415,7 @@ public function dataAssignInIf(): array
415415
$testScope,
416416
'ternaryMatches',
417417
TrinaryLogic::createYes(),
418-
'(0 is 256 ? array<array{string, int<-1, max>}> : (0 is 512 ? array<string|null> : (0 is 768 ? array<array{null, -1}|array{string, int<0, max>}> : array<string>)))',
418+
'array<string>',
419419
],
420420
[
421421
$testScope,

0 commit comments

Comments
 (0)