Skip to content

Commit dfb56df

Browse files
Update tests
1 parent 716aefa commit dfb56df

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
@@ -7454,31 +7454,31 @@ public function dataReplaceFunctions(): array
74547454
'$anotherExpectedString',
74557455
],
74567456
[
7457-
'array{a: string, b: string}',
7457+
'array{a: lowercase-string&non-falsy-string, b: lowercase-string&non-falsy-string}',
74587458
'$expectedArray',
74597459
],
74607460
[
74617461
'array{a?: string, b?: string}',
74627462
'$expectedArray2',
74637463
],
74647464
[
7465-
'array{a?: string, b?: string}',
7465+
'array{a?: lowercase-string&non-falsy-string, b?: lowercase-string&non-falsy-string}',
74667466
'$anotherExpectedArray',
74677467
],
74687468
[
7469-
'list<string>|string',
7469+
'array{}|(lowercase-string&non-falsy-string)',
74707470
'$expectedArrayOrString',
74717471
],
74727472
[
7473-
'(list<string>|string)',
7473+
'(array<string>|string)',
74747474
'$expectedBenevolentArrayOrString',
74757475
],
74767476
[
7477-
'list<string>|string|null',
7477+
'array{}|string|null',
74787478
'$expectedArrayOrString2',
74797479
],
74807480
[
7481-
'list<string>|string|null',
7481+
'array{}|(lowercase-string&non-falsy-string)|null',
74827482
'$anotherExpectedArrayOrString',
74837483
],
74847484
[

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)