Skip to content

PHP WTF - a string is not a string

$ php -a Interactive shell php > function foo(string $s) { echo $s; } php > foo("bar"); PHP Catchable fatal error: Argument 1 passed to foo() must be an instance of string, string given, called in php shell code on line 1 and defined in php shell code on line 1