-
-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Callback - bug with closure and private/protected methods #270
Comments
{lamda} was used for functions created by create_function() |
Thanks for the answer 👍 |
Thanks for report :-) |
dg
added a commit
that referenced
this issue
Oct 26, 2021
dg
added a commit
that referenced
this issue
Oct 26, 2021
dg
added a commit
that referenced
this issue
Oct 26, 2021
dg
added a commit
that referenced
this issue
Nov 24, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
Nice piece of code. There is a bug in the Callback::unwrap function (https://github.com/nette/utils/blob/master/src/Utils/Callback.php#L127), the return value could be an array and not a callable in case you have a closure using a private method. for exemple :
I think the return typehint for the unwrap function to be 'array|callable' instead of simply 'callable'.
And by the way i have see in the toString funtion a case for "lambda" when does this "if" is used ?
Have a good day.
The text was updated successfully, but these errors were encountered: