Skip to content

Commit 509c2d8

Browse files
Update tests
1 parent 676fac4 commit 509c2d8

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

tests/PHPStan/Analyser/LegacyNodeScopeResolverTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7256,31 +7256,31 @@ public static function dataReplaceFunctions(): array
72567256
'$anotherExpectedString',
72577257
],
72587258
[
7259-
'array{a: string, b: string}',
7259+
'array{a: lowercase-string&non-falsy-string, b: lowercase-string&non-falsy-string}',
72607260
'$expectedArray',
72617261
],
72627262
[
72637263
'array{a?: string, b?: string}',
72647264
'$expectedArray2',
72657265
],
72667266
[
7267-
'array{a?: string, b?: string}',
7267+
'array{a?: lowercase-string&non-falsy-string, b?: lowercase-string&non-falsy-string}',
72687268
'$anotherExpectedArray',
72697269
],
72707270
[
7271-
'list<string>|string',
7271+
'array{}|(lowercase-string&non-falsy-string)',
72727272
'$expectedArrayOrString',
72737273
],
72747274
[
7275-
'(list<string>|string)',
7275+
'(array<string>|string)',
72767276
'$expectedBenevolentArrayOrString',
72777277
],
72787278
[
7279-
'list<string>|string|null',
7279+
'array{}|string|null',
72807280
'$expectedArrayOrString2',
72817281
],
72827282
[
7283-
'list<string>|string|null',
7283+
'array{}|(lowercase-string&non-falsy-string)|null',
72847284
'$anotherExpectedArrayOrString',
72857285
],
72867286
[

tests/PHPStan/Rules/Operators/InvalidBinaryOperationRuleTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,15 +103,15 @@ public function testRule(): void
103103
122,
104104
],
105105
[
106-
'Binary operation "." between array and \'xyz\' results in an error.',
106+
'Binary operation "." between array<string> and \'xyz\' results in an error.',
107107
127,
108108
],
109109
[
110-
'Binary operation "." between list<string>|string and \'xyz\' results in an error.',
110+
'Binary operation "." between array{}|non-falsy-string and \'xyz\' results in an error.',
111111
134,
112112
],
113113
[
114-
'Binary operation "+" between (list<string>|string) and 1 results in an error.',
114+
'Binary operation "+" between (array<string>|string) and 1 results in an error.',
115115
136,
116116
],
117117
[

0 commit comments

Comments
 (0)