Fatal error: Uncaught TypeError: Cannot access offset of type classA on array in /in/CdYaE:8
Stack trace:
#0 {main}
thrown in /in/CdYaE on line 8
Process exited with code 255.
Fatal error: Uncaught TypeError: Illegal offset type in /in/CdYaE:8
Stack trace:
#0 {main}
thrown in /in/CdYaE on line 8
Process exited with code 255.
Output for 7.4.0 - 7.4.33
Warning: Illegal offset type in /in/CdYaE on line 8
Notice: Resource ID#5 used as offset, casting to integer (5) in /in/CdYaE on line 8
array(2) {
[""]=>
string(5) "hello"
[5]=>
string(8) "resource"
}
array(2) {
["hello"]=>
string(5) "hello"
["resource"]=>
string(8) "resource"
}
Warning: Illegal offset type in /in/CdYaE on line 8
Warning: Illegal offset type in /in/CdYaE on line 8
array(1) {
[""]=>
string(5) "hello"
}
array(1) {
["hello"]=>
string(5) "hello"
}