You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'Parameter #1 $keys of function array_combine expects an array of values castable to string, array<int, array<int, string>|Bug3946\stdClass|float|int|string> given.',
157
+
'Parameter #1 $keys of function array_combine expects an array of values castable to string, array<int, Bug3946\stdClass|float|int|list<string>|string> given.',
'Parameter $array of function array_unique expects an array of values castable to string, array<int, array<int, string>> given.',
91
+
'Parameter $array of function array_unique expects an array of values castable to string, array<int, list<string>> given.',
92
92
7,
93
93
],
94
94
[
95
95
'Parameter $array of function sort expects an array of values castable to string, array<int, array<int, string>> given.',
96
96
9,
97
97
],
98
98
[
99
-
'Parameter $array of function rsort expects an array of values castable to string, array<int, array<int, string>> given.',
99
+
'Parameter $array of function rsort expects an array of values castable to string, list<array<int, string>> given.',
100
100
10,
101
101
],
102
102
[
103
-
'Parameter $array of function asort expects an array of values castable to string, array<int, array<int, string>> given.',
103
+
'Parameter $array of function asort expects an array of values castable to string, list<array<int, string>> given.',
104
104
11,
105
105
],
106
106
[
107
-
'Parameter $array of function arsort expects an array of values castable to string, array<int, array<int, string>> given.',
107
+
'Parameter $array of function arsort expects an array of values castable to string, array<int, list<string>> given.',
108
108
12,
109
109
],
110
110
]);
@@ -126,11 +126,11 @@ public function testEnum(): void
126
126
14,
127
127
],
128
128
[
129
-
'Parameter #1 $array of function rsort expects an array of values castable to string, array<int, SortParamCastableToStringFunctionsEnum\\FooEnum> given.',
129
+
'Parameter #1 $array of function rsort expects an array of values castable to string, list<SortParamCastableToStringFunctionsEnum\FooEnum::A> given.',
130
130
15,
131
131
],
132
132
[
133
-
'Parameter #1 $array of function asort expects an array of values castable to string, array<int, SortParamCastableToStringFunctionsEnum\\FooEnum> given.',
133
+
'Parameter #1 $array of function asort expects an array of values castable to string, list<SortParamCastableToStringFunctionsEnum\FooEnum::A> given.',
Copy file name to clipboardexpand all lines: tests/PHPStan/Rules/Methods/ReturnTypeRuleTest.php
+2-2
Original file line number
Diff line number
Diff line change
@@ -237,15 +237,15 @@ public function testReturnTypeRule(): void
237
237
759,
238
238
],
239
239
[
240
-
'Method ReturnTypes\ArrayFillKeysIssue::getIPs2() should return array<string, array<ReturnTypes\Foo>> but returns array<string, array<int, ReturnTypes\Bar>>.',
240
+
'Method ReturnTypes\ArrayFillKeysIssue::getIPs2() should return array<string, array<ReturnTypes\Foo>> but returns array<string, list<ReturnTypes\Bar>>.',
241
241
817,
242
242
],
243
243
[
244
244
'Method ReturnTypes\AssertThisInstanceOf::doBar() should return $this(ReturnTypes\AssertThisInstanceOf) but returns ReturnTypes\AssertThisInstanceOf&ReturnTypes\FooInterface.',
245
245
840,
246
246
],
247
247
[
248
-
'Method ReturnTypes\NestedArrayCheck::doFoo() should return array<string, bool> but returns array<string, array<int, string>>.',
248
+
'Method ReturnTypes\NestedArrayCheck::doFoo() should return array<string, bool> but returns array<string, list<string>>.',
0 commit comments