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
When calling Event::forget('someEvent') the event's listeners are not removed. This is because of an additional $sorted array of listeners which is actually used in all meaningful operations inside this custom Dispatcher implementation.
Steps to replicate
Subscribe and fire an event
Forget the event
Fire again
Expected result: none of the previous listeners reacted on the event. Actual result: the listeners still react to the event.
Workaround
No response
The text was updated successfully, but these errors were encountered:
Winter CMS Build
dev-develop
PHP Version
8.1
Database engine
MySQL/MariaDB
Plugins installed
No response
Issue description
When calling
Event::forget('someEvent')
the event's listeners are not removed. This is because of an additional$sorted
array of listeners which is actually used in all meaningful operations inside this custom Dispatcher implementation.Steps to replicate
Expected result: none of the previous listeners reacted on the event. Actual result: the listeners still react to the event.
Workaround
No response
The text was updated successfully, but these errors were encountered: