public function invokeArgs($object, array $args) { /** @noinspection PhpUndefinedMethodInspection */ $invoker = invoker()->bindTo($object, get_class($object)); return $invoker($this->getName(), $args); }
function test_destructor() { echo ' = ', __FUNCTION__, " =\n"; invoker(array(new Dtor(), 'f')); echo "done: test_destructor\n"; }