Re: Anonymous functions inside static methods.

From: Date: Wed, 14 May 2014 18:06:23 +0000
Subject: Re: Anonymous functions inside static methods.
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
> Basically the closures aren't respecting late static binding and I
> am pretty sure it was just an oversight, not a conscious decision.

I feel you're right and a bug should be submitted.

Closures (speaking across languages) are supposed to stay aware of
their lexical scope, but that is what get_class() is for, not
get_called_class().

-- S.



Thread (9 messages)

« previous php.internals (#74202) next »