Skip to content

Commit 7ed2d67

Browse files
committed
Fix tests
1 parent b651a22 commit 7ed2d67

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@
180180
"ignorable": true
181181
},
182182
{
183-
"message": "Parameter #1 $nonEmpty of method Levels\\AcceptTypes\\AcceptNonEmpty::doBar() expects non-empty-array, array{} given.",
183+
"message": "Parameter #1 $nonEmpty of method Levels\\AcceptTypes\\AcceptNonEmpty::doBar() expects non-empty-array<mixed>, array{} given.",
184184
"line": 733,
185185
"ignorable": true
186186
},
@@ -189,4 +189,4 @@
189189
"line": 763,
190190
"ignorable": true
191191
}
192-
]
192+
]
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[
22
{
3-
"message": "Cannot use array destructuring on array|null.",
3+
"message": "Cannot use array destructuring on array<mixed>|null.",
44
"line": 15,
55
"ignorable": true
66
}
7-
]
7+
]
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[
22
{
3-
"message": "Offset 0 might not exist on array|null.",
3+
"message": "Offset 0 might not exist on array<mixed>|null.",
44
"line": 15,
55
"ignorable": true
66
},
@@ -9,4 +9,4 @@
99
"line": 50,
1010
"ignorable": true
1111
}
12-
]
12+
]
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[
22
{
3-
"message": "Cannot cast array|(callable(): mixed) to int.",
3+
"message": "Cannot cast array<mixed>|(callable(): mixed) to int.",
44
"line": 20,
55
"ignorable": true
66
},
77
{
8-
"message": "Cannot cast array|float|int to string.",
8+
"message": "Cannot cast array<mixed>|float|int 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,6 +1,6 @@
11
[
22
{
3-
"message": "Parameter #1 (array) of echo cannot be converted to string.",
3+
"message": "Parameter #1 (array<mixed>) of echo cannot be converted to string.",
44
"line": 21,
55
"ignorable": true
66
},
@@ -9,4 +9,4 @@
99
"line": 21,
1010
"ignorable": true
1111
}
12-
]
12+
]

0 commit comments

Comments
 (0)