4 ms·
Say I have a function that accepts I as argument: function my_func(I $x) { $x->foo(new stdClass); } That wouldn't be allowed, since your code requi
by jaachan 13y ago
Say I have a function that accepts I as argument:
function my_func(I $x)
{
$x->foo(new stdClass);
}
That wouldn't be allowed, since your code requires an instance of Test, not stdClass