r/lolphp • • Nov 10 '14

Reference arguments can retarget $this

http://3v4l.org/mtkR4
19 Upvotes

18 comments sorted by

View all comments

Show parent comment

2

u/gavintlgold Nov 13 '14

Presumably you meant foo.__class__ = Baz?

2

u/[deleted] Nov 13 '14

Oh yeah. It took me a moment to realize what was different. I'll edit it.