Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Foo has a deprecated constructor in /in/I22pT on line 3
bar
Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.28
Catchable fatal error: Argument 1 passed to Foo::foo() must be an instance of string, string given, called in /in/I22pT on line 13 and defined in /in/I22pT on line 5
Process exited with code 255.