Open MartinMystikJonas opened 1 year ago
I think the code needs to be expanded to include that scenario: when this code was written, first class callables didn't really exist
FYI the fix is no longer needed for this use case. They solved it differently.
@ondrejmirtes so ReflectionFunction::createFromClosure(foo(...))
works now? :P
@Ocramius In our use case we simply used native reflection
That's fine then, but it means this library is still affected 😁
This code throws
NoClosureOnLine
exceptionit seems
ReflectionFunction::createFromClosure
does not support first class callables. Is there any other way to get reflection of given closure created by first-class callable?