Skip to content

Commit 0717f23

Browse files
inform the type in the array displacement error message.
1 parent cb12bed commit 0717f23

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

ext/opcache/tests/jit/assign_dim_002.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ array(1) {
161161
int(1)
162162
}
163163
}
164-
Illegal offset type
164+
Illegal offset type: cannot be of type object
165165
array(1) {
166166
[0]=>
167167
array(2) {
@@ -198,7 +198,7 @@ array(1) {
198198
}
199199

200200
Deprecated: Automatic conversion of false to array is deprecated in %s on line %d
201-
Illegal offset type
201+
Illegal offset type: cannot be of type array
202202

203203
Deprecated: Automatic conversion of false to array is deprecated in %s on line %d
204204
int(1)
@@ -221,7 +221,7 @@ array(1) {
221221
}
222222

223223
Deprecated: Automatic conversion of false to array is deprecated in %s on line %d
224-
Illegal offset type
224+
Illegal offset type: cannot be of type array
225225

226226
Warning: Undefined variable $undef in %s on line %d
227227
NULL

ext/opcache/tests/jit/assign_dim_op_001.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Warning: Undefined array key 2 in %s on line %d
7979
Deprecated: Automatic conversion of false to array is deprecated in %s on line %d
8080

8181
Deprecated: Automatic conversion of false to array is deprecated in %s on line %d
82-
Illegal offset type
82+
Illegal offset type: cannot be of type array
8383

8484
Deprecated: Automatic conversion of false to array is deprecated in %s on line %d
8585

@@ -104,5 +104,5 @@ array(1) {
104104
}
105105

106106
Deprecated: Automatic conversion of false to array is deprecated in %s on line %d
107-
Illegal offset type
107+
Illegal offset type: cannot be of type array
108108
Unsupported operand types: null % string

ext/opcache/tests/jit/fetch_dim_rw_004.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Stack trace:
1818
#0 %sfetch_dim_rw_004.php(5): {closure}(2, 'Undefined varia...', '%s', 5)
1919
#1 {main}
2020

21-
Next TypeError: Illegal offset type in %sfetch_dim_rw_004.php:5
21+
Next TypeError: Illegal offset type: cannot be of type array in %sfetch_dim_rw_004.php:5
2222
Stack trace:
2323
#0 {main}
2424
thrown in %sfetch_dim_rw_004.php on line 5

tests/classes/tostring_001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ test2::__toString()
118118
Converted
119119
====test7====
120120
test2::__toString()
121-
Illegal offset type
121+
Illegal offset type: cannot be of type object
122122
====test8====
123123
test2::__toString()
124124
string(9) "Converted"

0 commit comments

Comments
 (0)