calling function
Caught
TypeError Object
(
[message:protected] => test(): Argument #1 ($val) must be of type Foo, false given, called in /in/ndCY1 on line 8
[string:Error:private] =>
[code:protected] => 0
[file:protected] => /in/ndCY1
[line:protected] => 18
[trace:Error:private] => Array
(
[0] => Array
(
[file] => /in/ndCY1
[line] => 8
[function] => test
[args] => Array
(
[0] =>
)
)
)
[previous:Error:private] =>
)
done
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
calling function
Caught
TypeError Object
(
[message:protected] => test(): Argument #1 ($val) must be of type Foo, false given, called in /in/ndCY1 on line 8
[string:Error:private] =>
[code:protected] => 0
[file:protected] => /in/ndCY1
[line:protected] => 18
[trace:Error:private] => Array
(
[0] => Array
(
[file] => /in/ndCY1
[line] => 8
[function] => test
[args] => Array
(
[0] =>
)
)
)
[previous:Error:private] =>
)
done