-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[BUG]: Null cannot be set in the source parameter when firing an event. #15133
Comments
@zsilbi This issue worked in 3.4. |
i don't think this would have workerd in any 3.x version. Based on this : https://github.com/phalcon/cphalcon/blob/3.0.x/phalcon/events/manager.zep#L376 2nd parameter is always the component that is listening for the event. |
In the service I was developing, I have confirmed that it worked without problems even if the second argument was null. (v3.4.5) I think the problem occurred because the following judgment was added. |
ok indeed in 3.4.x is working. for me it is
but i think this issue is because of zephir-lang/zephir#1656. This was merged in zephir 0.11+ and we used zephir 0.10 to build phalcon 3.4.X because it was breaking everything. before that zephir wasn't respecting params and return types correctly. for me we only need to update the docs, I don't think there is a bug here. also I am able to reproduce this error:
and not exactly what you have shown. but I am pretty sure it is the same case. |
I see. I had this problem because I sometimes didn't use the second argument. |
I'm starting to see some sense to 2nd argument
@niden Could you provide more information if my thoughts makes sense? |
I looked at the manager code and making the
We can make this change in v5 since it will break BC. |
Personally I never had to send |
Describe the bug
Null cannot be set in the source parameter when firing an event.
There is an example using null in the documentation.
https://docs.phalcon.io/4.0/ja-jp/events#responses
Also, you cannot specify a character string.
There are many examples of using $this in the documentation, but I put values such as user_id.
c4cf1db
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Details
The text was updated successfully, but these errors were encountered: