Fatal error: Uncaught TypeError: foo(): Argument #1 ($d) must be of type DateTime, string given, called in /in/XL0Of on line 7 and defined in /in/XL0Of:3
Stack trace:
#0 /in/XL0Of(7): foo('5')
#1 {main}
thrown in /in/XL0Of on line 3
Process exited with code 255.
Fatal error: Uncaught TypeError: Argument 1 passed to foo() must be an instance of DateTime, string given, called in /in/XL0Of on line 7 and defined in /in/XL0Of:3
Stack trace:
#0 /in/XL0Of(7): foo('5')
#1 {main}
thrown in /in/XL0Of on line 3
Process exited with code 255.
Output for 5.6.0 - 5.6.24
Catchable fatal error: Argument 1 passed to foo() must be an instance of DateTime, string given, called in /in/XL0Of on line 7 and defined in /in/XL0Of on line 3
Process exited with code 255.