this doesn't seem to work, and I don't know why? you can create static closures inside non-static methods, why not the other way around?
class RegularClass { private $name = 'REGULAR'; } class StaticFunctions { public static function doStuff() { $func = function () {
closures php binding
Codexp
source share