Fatal error: Uncaught TypeError: Example::foo(): Argument #1 ($f) must be of type ?int, string given, called in /in/vUPpT on line 13 and defined in /in/vUPpT:4
Stack trace:
#0 /in/vUPpT(13): Example->foo('string')
#1 {main}
thrown in /in/vUPpT on line 4
Process exited with code 255.
Output for 7.3.24 - 7.3.33, 7.4.12 - 7.4.33
Fatal error: Uncaught TypeError: Argument 1 passed to Example::foo() must be of the type int or null, string given, called in /in/vUPpT on line 13 and defined in /in/vUPpT:4
Stack trace:
#0 /in/vUPpT(13): Example->foo('string')
#1 {main}
thrown in /in/vUPpT on line 4
Process exited with code 255.
Output for 7.1.7
Fatal error: Uncaught TypeError: Argument 1 passed to Example::foo() must be of the type integer or null, string given, called in /in/vUPpT on line 13 and defined in /in/vUPpT:4
Stack trace:
#0 /in/vUPpT(13): Example->foo('string')
#1 {main}
thrown in /in/vUPpT on line 4
Process exited with code 255.