- Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.16
- Parse error: syntax error, unexpected '}' in /in/aM0Kv on line 11
Process exited with code 255.
<?php
class Foo
{
private static function fooStaticMethod()
{
return function (Foo $foo) {
$foo->fooMethod();
}
}
private function fooMethod()
{
var_dump('foo');
}
}
$cb = Foo::fooStaticMethod();
$cb(new Foo());