<?php
function callStuff(callable $function)
{
$function();
}
class C
{
function foo()
{
echo 'fooooooooooo';
}
public function __invoke()
{
echo 'invoke w00t w00t';
}
}
$c = new C;
callStuff(array($c, 'foo'));
Catchable fatal error: Argument 1 passed to callStuff() must be an instance of callable, array given, called in /in/ndHSL on line 23 and defined in /in/ndHSL on line 3
Process exited with code 255.