-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Events.php on method $callable parameter accepts only callable #1835
Comments
I tried to look deeper into this and found this article https://wiki.php.net/rfc/consistent_callables First example of problem i think is it |
I tested it, is OK. @d4mn
|
Is it working as expected? |
lonnieezell
added a commit
that referenced
this issue
Mar 25, 2019
lonnieezell
added a commit
that referenced
this issue
Mar 25, 2019
Events should actually work with any callable now. Fixes #1835
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
name: Bug report
about: Help us improve the framework by reporting bugs!
Describe the bug
All these methods:
Throws an error because argument $callable in function
public static function on($event_name, callable $callback, $priority = EVENT_PRIORITY_NORMAL)
must be of type callable string and array throws an errorCodeIgniter 4 version
Codeigniter 4 beta 1
Affected module(s)
Events.php
Expected behavior, and steps to reproduce if appropriate
method should not be strict checked in functions attribute
Context
The text was updated successfully, but these errors were encountered: