<?php
//interface Foo {
// public function foo(String $foo) : String;
//}
class Bar implements Foo {
public function foo(String $foo) {
return new StdClass;
}
}
$b = new Bar;
var_dump($b->foo("test"));
Fatal error: Uncaught Error: Interface "Foo" not found in /in/1WPYB:7
Stack trace:
#0 {main}
thrown in /in/1WPYB on line 7
Process exited with code 255.
Output for 7.4.0 - 7.4.33
Fatal error: Uncaught Error: Interface 'Foo' not found in /in/1WPYB:7
Stack trace:
#0 {main}
thrown in /in/1WPYB on line 7
Process exited with code 255.