Fatal error: Uncaught TypeError: DateTime::modify(): Argument #1 ($modifier) must be of type string, DateInterval given in /in/tivtY:4
Stack trace:
#0 /in/tivtY(4): DateTime->modify(Object(DateInterval))
#1 {main}
thrown in /in/tivtY on line 4
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: DateTime::modify(): Argument #1 ($modifier) must be of type string, DateInterval given in /in/tivtY:4
Stack trace:
#0 /in/tivtY(4): DateTime->modify(Object(DateInterval))
#1 {main}
thrown in /in/tivtY on line 4
Process exited with code 255.
Warning: DateTime::modify() expects parameter 1 to be string, object given in /in/tivtY on line 4
object(DateTime)#1 (3) {
["date"]=>
string(26) "2016-01-31 00:00:00.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
Output for 7.3.32 - 7.3.33
Warning: DateTime::modify() expects parameter 1 to be string, object given in /in/tivtY on line 4
object(DateTime)#1 (3) {
["date"]=>
string(26) "2016-01-31 00:00:00.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(3) "UTC"
}