Skip to content

Commit

Permalink
Fixed types
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Oct 13, 2024
1 parent aefa588 commit 1aec430
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions tests/PHPStan/Levels/data/acceptTypes-7.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,12 @@
"ignorable": true
},
{
"message": "Parameter #1 $array of method Levels\\AcceptTypes\\Baz::requireArray() expects array<mixed>, array|Levels\\AcceptTypes\\Foo given.",
"message": "Parameter #1 $array of method Levels\\AcceptTypes\\Baz::requireArray() expects array<mixed>, array<mixed>|Levels\\AcceptTypes\\Foo given.",
"line": 542,
"ignorable": true
},
{
"message": "Parameter #1 $foo of method Levels\\AcceptTypes\\Baz::requireFoo() expects Levels\\AcceptTypes\\Foo, array|Levels\\AcceptTypes\\Foo given.",
"message": "Parameter #1 $foo of method Levels\\AcceptTypes\\Baz::requireFoo() expects Levels\\AcceptTypes\\Foo, array<mixed>|Levels\\AcceptTypes\\Foo given.",
"line": 543,
"ignorable": true
},
Expand Down Expand Up @@ -160,7 +160,7 @@
"ignorable": true
},
{
"message": "Parameter #1 $nonEmpty of method Levels\\AcceptTypes\\AcceptNonEmpty::doBar() expects non-empty-array<mixed>, array given.",
"message": "Parameter #1 $nonEmpty of method Levels\\AcceptTypes\\AcceptNonEmpty::doBar() expects non-empty-array<mixed>, array<mixed> given.",
"line": 735,
"ignorable": true
},
Expand Down
6 changes: 3 additions & 3 deletions tests/PHPStan/Levels/data/echo_-7.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[
{
"message": "Parameter #3 (array|float|int) of echo cannot be converted to string.",
"message": "Parameter #3 (array<mixed>|float|int) of echo cannot be converted to string.",
"line": 21,
"ignorable": true
},
{
"message": "Parameter #4 (array|string) of echo cannot be converted to string.",
"message": "Parameter #4 (array<mixed>|string) of echo cannot be converted to string.",
"line": 21,
"ignorable": true
}
]
]
4 changes: 2 additions & 2 deletions tests/PHPStan/Levels/data/iterable-8.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[
{
"message": "Argument of an invalid type array|null supplied for foreach, only iterables are supported.",
"message": "Argument of an invalid type array<mixed>|null supplied for foreach, only iterables are supported.",
"line": 26,
"ignorable": true
}
]
]

0 comments on commit 1aec430

Please sign in to comment.