Fatal error: Uncaught TypeError: Train::{closure}(): Argument #1 ($wagons) must be of type Wagon, array given, called in /in/h9X1j on line 21 and defined in /in/h9X1j:19
Stack trace:
#0 /in/h9X1j(21): Train->{closure}(Array)
#1 /in/h9X1j(29): Train->__construct(Array)
#2 {main}
thrown in /in/h9X1j on line 19
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
Fatal error: Uncaught TypeError: Train::{closure}(): Argument #1 ($wagons) must be of type Wagon, array given, called in /in/h9X1j on line 21 and defined in /in/h9X1j:19
Stack trace:
#0 /in/h9X1j(21): Train->{closure}(Array)
#1 /in/h9X1j(29): Train->__construct(Array)
#2 {main}
thrown in /in/h9X1j on line 19
Process exited with code 255.
Fatal error: Uncaught TypeError: Argument 1 passed to Train::{closure}() must be an instance of Wagon, array given, called in /in/h9X1j on line 21 and defined in /in/h9X1j:19
Stack trace:
#0 /in/h9X1j(21): Train->{closure}(Array)
#1 /in/h9X1j(29): Train->__construct(Array)
#2 {main}
thrown in /in/h9X1j on line 19
Process exited with code 255.