<?php interface Foo { public function bar(): string; } class Test implements Foo { public function bar() { return new StdClass; } } $t = new Test; var_dump($t->bar());
You have javascript disabled. You will not be able to edit any code.