Fatal error: Uncaught TypeError: test(): Argument #1 ($dt) must be of type DateTime, DateTimeImmutable given, called in /in/4GSjI on line 5 and defined in /in/4GSjI:3
Stack trace:
#0 /in/4GSjI(5): test(Object(DateTimeImmutable))
#1 {main}
thrown in /in/4GSjI on line 3
Process exited with code 255.
Fatal error: Uncaught TypeError: Argument 1 passed to test() must be an instance of DateTime, instance of DateTimeImmutable given, called in /in/4GSjI on line 5 and defined in /in/4GSjI:3
Stack trace:
#0 /in/4GSjI(5): test(Object(DateTimeImmutable))
#1 {main}
thrown in /in/4GSjI on line 3
Process exited with code 255.