Skip to content

Commit 1aec430

Browse files
committed
Fixed types
1 parent aefa588 commit 1aec430

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

tests/PHPStan/Levels/data/acceptTypes-7.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,12 @@
9595
"ignorable": true
9696
},
9797
{
98-
"message": "Parameter #1 $array of method Levels\\AcceptTypes\\Baz::requireArray() expects array<mixed>, array|Levels\\AcceptTypes\\Foo given.",
98+
"message": "Parameter #1 $array of method Levels\\AcceptTypes\\Baz::requireArray() expects array<mixed>, array<mixed>|Levels\\AcceptTypes\\Foo given.",
9999
"line": 542,
100100
"ignorable": true
101101
},
102102
{
103-
"message": "Parameter #1 $foo of method Levels\\AcceptTypes\\Baz::requireFoo() expects Levels\\AcceptTypes\\Foo, array|Levels\\AcceptTypes\\Foo given.",
103+
"message": "Parameter #1 $foo of method Levels\\AcceptTypes\\Baz::requireFoo() expects Levels\\AcceptTypes\\Foo, array<mixed>|Levels\\AcceptTypes\\Foo given.",
104104
"line": 543,
105105
"ignorable": true
106106
},
@@ -160,7 +160,7 @@
160160
"ignorable": true
161161
},
162162
{
163-
"message": "Parameter #1 $nonEmpty of method Levels\\AcceptTypes\\AcceptNonEmpty::doBar() expects non-empty-array<mixed>, array given.",
163+
"message": "Parameter #1 $nonEmpty of method Levels\\AcceptTypes\\AcceptNonEmpty::doBar() expects non-empty-array<mixed>, array<mixed> given.",
164164
"line": 735,
165165
"ignorable": true
166166
},
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[
22
{
3-
"message": "Parameter #3 (array|float|int) of echo cannot be converted to string.",
3+
"message": "Parameter #3 (array<mixed>|float|int) of echo cannot be converted to string.",
44
"line": 21,
55
"ignorable": true
66
},
77
{
8-
"message": "Parameter #4 (array|string) of echo cannot be converted to string.",
8+
"message": "Parameter #4 (array<mixed>|string) of echo cannot be converted to string.",
99
"line": 21,
1010
"ignorable": true
1111
}
12-
]
12+
]
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[
22
{
3-
"message": "Argument of an invalid type array|null supplied for foreach, only iterables are supported.",
3+
"message": "Argument of an invalid type array<mixed>|null supplied for foreach, only iterables are supported.",
44
"line": 26,
55
"ignorable": true
66
}
7-
]
7+
]

0 commit comments

Comments
 (0)