You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
new ReflectionFunction($closure) seems to work as expected. However, in one case I am doing $reflectionFunction->getParameters() and then doing $reflectionParameter->getDefiningFunction(), which returns a ReflectionMethod instance in PHP (why not ReflectionFunction? no idea) that behaves differently from the original ReflectionFunction.
isClosure() returns false
getClosureScopeClass() returns null
getDeclaringClass() returns something like "Closure$Namespace\Class::method;0000000".
new ReflectionFunction($closure)
seems to work as expected. However, in one case I am doing$reflectionFunction->getParameters()
and then doing$reflectionParameter->getDefiningFunction()
, which returns a ReflectionMethod instance in PHP (why not ReflectionFunction? no idea) that behaves differently from the original ReflectionFunction.isClosure()
returns falsegetClosureScopeClass()
returns nullgetDeclaringClass()
returns something like "Closure$Namespace\Class::method;0000000".http://3v4l.org/VgIeT
Some of this behaviour seems really quirky in PHP already and I can't imagine it's a high priority fix, but I thought I'd let you know.
The text was updated successfully, but these errors were encountered: