Phalanger icon indicating copy to clipboard operation
Phalanger copied to clipboard

anon functions inside class need $this passed by default

Open robertleeplummerjr opened this issue 10 years ago • 1 comments

As does in php.

robertleeplummerjr avatar May 29 '14 14:05 robertleeplummerjr

I did work around this by simply creating a var outside the scope called $that, and passed it through using(). As far as I'm concerned, this is a good as closed as well.

robertleeplummerjr avatar Jun 04 '14 13:06 robertleeplummerjr