Deprecated: Return type of MyDateTime::createFromFormat($format, $time, $timezone = null) should either be compatible with DateTime::createFromFormat(string $format, string $datetime, ?DateTimeZone $timezone = null): DateTime|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/pMrhY on line 4
string(25) "2017-01-17T16:06:46+01:00"
Fatal error: Uncaught TypeError: DateTime::createFromFormat(): Argument #3 ($timezone) must be of type ?DateTimeZone, string given in /in/pMrhY:8
Stack trace:
#0 /in/pMrhY(8): DateTime::createFromFormat('yy-mm-dd', '2017-01-17', 'Europe/Amsterda...')
#1 /in/pMrhY(13): MyDateTime::createFromFormat('yy-mm-dd', '2017-01-17')
#2 {main}
thrown in /in/pMrhY on line 8
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
Deprecated: Return type of MyDateTime::createFromFormat($format, $time, $timezone = null) should either be compatible with DateTime::createFromFormat(string $format, string $datetime, ?DateTimeZone $timezone = null): DateTime|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/pMrhY on line 4
string(25) "2017-01-17T16:06:46+01:00"
Fatal error: Uncaught TypeError: DateTime::createFromFormat(): Argument #3 ($timezone) must be of type ?DateTimeZone, string given in /in/pMrhY:8
Stack trace:
#0 /in/pMrhY(8): DateTime::createFromFormat('yy-mm-dd', '2017-01-17', 'Europe/Amsterda...')
#1 /in/pMrhY(13): MyDateTime::createFromFormat('yy-mm-dd', '2017-01-17')
#2 {main}
thrown in /in/pMrhY on line 8
Process exited with code 255.
Output for 8.0.0 - 8.0.12, 8.0.14 - 8.0.30
string(25) "2017-01-17T16:06:46+01:00"
Fatal error: Uncaught TypeError: DateTime::createFromFormat(): Argument #3 ($timezone) must be of type ?DateTimeZone, string given in /in/pMrhY:8
Stack trace:
#0 /in/pMrhY(8): DateTime::createFromFormat('yy-mm-dd', '2017-01-17', 'Europe/Amsterda...')
#1 /in/pMrhY(13): MyDateTime::createFromFormat('yy-mm-dd', '2017-01-17')
#2 {main}
thrown in /in/pMrhY on line 8
Process exited with code 255.
Output for 8.0.13
string(25) "2017-01-17T15:06:46+00:00"
Fatal error: Uncaught TypeError: DateTime::createFromFormat(): Argument #3 ($timezone) must be of type ?DateTimeZone, string given in /in/pMrhY:8
Stack trace:
#0 /in/pMrhY(8): DateTime::createFromFormat('yy-mm-dd', '2017-01-17', 'UTC')
#1 /in/pMrhY(13): MyDateTime::createFromFormat('yy-mm-dd', '2017-01-17')
#2 {main}
thrown in /in/pMrhY on line 8
Process exited with code 255.
string(25) "2017-01-17T16:06:46+01:00"
Fatal error: Uncaught TypeError: Argument 3 passed to DateTime::createFromFormat() must be an instance of DateTimeZone or null, string given in /in/pMrhY:8
Stack trace:
#0 /in/pMrhY(8): DateTime::createFromFormat('yy-mm-dd', '2017-01-17', 'Europe/Amsterda...')
#1 /in/pMrhY(13): MyDateTime::createFromFormat('yy-mm-dd', '2017-01-17')
#2 {main}
thrown in /in/pMrhY on line 8
Process exited with code 255.
Output for 7.3.32 - 7.3.33
string(25) "2017-01-17T15:06:46+00:00"
Fatal error: Uncaught TypeError: Argument 3 passed to DateTime::createFromFormat() must be an instance of DateTimeZone or null, string given in /in/pMrhY:8
Stack trace:
#0 /in/pMrhY(8): DateTime::createFromFormat('yy-mm-dd', '2017-01-17', 'UTC')
#1 /in/pMrhY(13): MyDateTime::createFromFormat('yy-mm-dd', '2017-01-17')
#2 {main}
thrown in /in/pMrhY on line 8
Process exited with code 255.
string(25) "2017-01-17T16:06:46+01:00"
Warning: DateTime::createFromFormat() expects parameter 3 to be DateTimeZone, string given in /in/pMrhY on line 8
string(25) "2017-01-17T16:06:46+01:00"
Output for 5.6.29, 7.0.14
string(25) "2017-01-17T16:06:45+01:00"
Warning: DateTime::createFromFormat() expects parameter 3 to be DateTimeZone, string given in /in/pMrhY on line 8
string(25) "2017-01-17T16:06:45+01:00"