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
But it incorrectly appends the listener so that any extension listening suite.init causes:
[26-May-2025 06:38:58 UTC] PHP Fatal error: Uncaught TypeError: Symfony\Component\EventDispatcher\EventDispatcher::addListener(): Argument #3 ($priority) must be of type int, string given, called in /data/vendor/symfony/event-dispatcher/EventDispatcher.php on line 178 and defined in /data/vendor/symfony/event-dispatcher/EventDispatcher.php:129
Activity
TavoNiievez commentedon May 26, 2025
Hi @dantleech ,
before the commit you reference
getSubscribedEventswas also included by default in the abstractExtensionclass with exactly the same code:Codeception/src/Codeception/Extension.php
Lines 47 to 58 in e6ddcb0
Could you explain why moving the function to a trait and using it as before introduces the error you indicate?
dantleech commentedon May 26, 2025
Sorry - I assumed it was introduced in that MR, the last version that worked was in 5.2.2:
https://github.com/Codeception/Codeception/blob/5.2.2/src/Codeception/Extension.php#L49
TavoNiievez commentedon May 26, 2025
Understood.
So you are referring to this PR:
https://github.com/Codeception/Codeception/pull/6849/files#diff-4cd87484550c33eba1e84bdee7530fca0a946ea5c25de6a085e3d30f534d70cd
It looks like you are right. I sent a PR to restore the previous version.
dantleech commentedon May 26, 2025
Thanks for the quick work!
TavoNiievez commentedon May 26, 2025
Released as version 5.3.2
Please update, and thanks for reporting!
dantleech commentedon May 26, 2025
Confirmed, thanks again!