Closed TysonAndre closed 7 years ago
(There may be a more generic way to do this, but I'm mostly focusing on constructors/methods returning callables)
E.g.
(new SomethingVisitor())($arg1, $arg2)
MyClass::makeCallable($constructorArgs)($args)
thanks @TysonAndre for the PR
(There may be a more generic way to do this, but I'm mostly focusing on constructors/methods returning callables)
E.g.
(new SomethingVisitor())($arg1, $arg2)
becomes call_user_func(new SomethingVisitor(), $arg1, $arg2)MyClass::makeCallable($constructorArgs)($args)