HomePhabricator

Support PHP 5.3, take 2

Authored by Majr.

Description

Support PHP 5.3, take 2

Apparently PHP 5.3 considers an anonymous function defined inside the
class to be outside the class's scope, so any variables you want to use
inside the function have to be public. *sigh*

The alternative option would be to make the anonymous callback function
a private method of the class, which would allow you to use self:: and
keep the $widgets property private, but separating it like that feels
a bit messy to me.

Change-Id: I4b8921b6d22589d47356031a426a02da9f173b51

Details

Committed
MajrMar 16 2015, 11:38 AM
Parents
rEWIDe3185de226b7: Support PHP < 5.4
Branches
Unknown
Tags
Unknown
References
refs/changes/22/197022/1
ChangeId
I4b8921b6d22589d47356031a426a02da9f173b51