object(stdClass)#1 (1) {
["value"]=>
array(2) {
[0]=>
int(5)
[1]=>
int(8)
}
}
Fatal error: Uncaught TypeError: foo(): Argument #1 ($bar) must be of type stdClass, array given, called in /in/SbHE6 on line 10 and defined in /in/SbHE6:3
Stack trace:
#0 /in/SbHE6(10): foo(Array)
#1 {main}
thrown in /in/SbHE6 on line 3
Process exited with code 255.
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
object(stdClass)#1 (1) {
["value"]=>
array(2) {
[0]=>
int(5)
[1]=>
int(8)
}
}
Fatal error: Uncaught TypeError: foo(): Argument #1 ($bar) must be of type stdClass, array given, called in /in/SbHE6 on line 10 and defined in /in/SbHE6:3
Stack trace:
#0 /in/SbHE6(10): foo(Array)
#1 {main}
thrown in /in/SbHE6 on line 3
Process exited with code 255.
object(stdClass)#1 (1) {
["value"]=>
array(2) {
[0]=>
int(5)
[1]=>
int(8)
}
}
Fatal error: Uncaught TypeError: Argument 1 passed to foo() must be an instance of stdClass, array given, called in /in/SbHE6 on line 10 and defined in /in/SbHE6:3
Stack trace:
#0 /in/SbHE6(10): foo(Array)
#1 {main}
thrown in /in/SbHE6 on line 3
Process exited with code 255.
object(stdClass)#1 (1) {
["value"]=>
array(2) {
[0]=>
int(5)
[1]=>
int(8)
}
}
Catchable fatal error: Argument 1 passed to foo() must be an instance of stdClass, array given, called in /in/SbHE6 on line 10 and defined in /in/SbHE6 on line 3
Process exited with code 255.