Scalar type hints break newinstance()
thekid opened this issue · 0 comments
thekid commented
abstract class Base {
public abstract function fixture(string $arg);
}
newinstance(Base::class, [], [
'fixture' => function(string $arg) { return 'Hello'; }
]);
Uncaught error: Compile error (Declaration of Base▒1::fixture($arg) must be compatible with Base::fixture(string $arg))