> On Jun 25, 2015, at 2:39 PM, Marc Bennewitz <dev@mabe.berlin> wrote:
> 
> Nice to see this - didn't noted it in the last month :)
> 
> But there is one edge case that is not handled by PHP-7 at current behavior;
> http://3v4l.org/HkRQ7 <http://3v4l.org/HkRQ7>
> 
> class Foo {
>    public static function __callStatic($m, $args) {
>        var_dump($m);
>    }
>    public function __call($m, $args) {
>        var_dump($m);
>    }
> }
> 
> $callable = [new Foo, ''];
> $callable(); // string(0) ""
> 
> $callable = 'Foo::';
> $callable(); // Fatal error: Uncaught Error: Call to undefined function 
> Foo::()
> 
> This behavior is inconsistent!
> 
> Thanks
> Marc
> 


Interesting, I didn’t consider that an empty method name should invoke
__callStatic(). I’ll look into fixing this sometime today or tomorrow.

Thanks,
Aaron Piotrowski

Reply via email to