bool(false)
Deprecated: Automatic conversion of false to array is deprecated in /in/GMKA5 on line 4
array(1) {
["bar"]=>
string(3) "baz"
}
---
So changing a variable's type is perfectly fine, right?
---
float(1)
Fatal error: Uncaught Error: Cannot use a scalar value as an array in /in/GMKA5:11
Stack trace:
#0 {main}
thrown in /in/GMKA5 on line 11
Process exited with code 255.
Output for 8.0.0 - 8.0.30
bool(false)
array(1) {
["bar"]=>
string(3) "baz"
}
---
So changing a variable's type is perfectly fine, right?
---
float(1)
Fatal error: Uncaught Error: Cannot use a scalar value as an array in /in/GMKA5:11
Stack trace:
#0 {main}
thrown in /in/GMKA5 on line 11
Process exited with code 255.
bool(false)
array(1) {
["bar"]=>
string(3) "baz"
}
---
So changing a variable's type is perfectly fine, right?
---
float(1)
Warning: Cannot use a scalar value as an array in /in/GMKA5 on line 11
float(1)