Fatal error: Uncaught TypeError: array_map(): Argument #2 ($array) must be of type array, DOMNodeList given in /in/bjdch:62
Stack trace:
#0 /in/bjdch(62): array_map(Object(Closure), Object(DOMNodeList))
#1 /in/bjdch(116): MyParser->insertInto('class', 'third', 'newtesttxtxttx')
#2 {main}
thrown in /in/bjdch on line 62
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: array_map(): Argument #2 ($array) must be of type array, DOMNodeList given in /in/bjdch:62
Stack trace:
#0 /in/bjdch(62): array_map(Object(Closure), Object(DOMNodeList))
#1 /in/bjdch(116): MyParser->insertInto('class', 'third', 'newtesttxtxttx')
#2 {main}
thrown in /in/bjdch on line 62
Process exited with code 255.
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28
Fatal error: Uncaught TypeError: array_map(): Argument #2 ($array) must be of type array, DOMNodeList given in /in/bjdch:65
Stack trace:
#0 /in/bjdch(65): array_map(Object(Closure), Object(DOMNodeList))
#1 /in/bjdch(116): MyParser->insertInto('class', 'third', 'newtesttxtxttx')
#2 {main}
thrown in /in/bjdch on line 65
Process exited with code 255.
Output for 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Warning: array_map(): Expected parameter 2 to be an array, object given in /in/bjdch on line 65
Warning: array_filter() expects parameter 1 to be array, object given in /in/bjdch on line 26
Warning: Invalid argument supplied for foreach() in /in/bjdch on line 27
Warning: array_map(): Expected parameter 2 to be an array, object given in /in/bjdch on line 38
Warning: array_map(): Argument #2 should be an array in /in/bjdch on line 65
Warning: array_filter() expects parameter 1 to be array, object given in /in/bjdch on line 26
Warning: Invalid argument supplied for foreach() in /in/bjdch on line 27
Warning: array_map(): Argument #2 should be an array in /in/bjdch on line 38