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
my tests fails after update version from 3.0.0 to 3.0.1. Issue: [Warning] Undefined array key "reconnect" at /var/www/html/vendor/codeception/module-amqp/src/Codeception/Module/AMQP.php:103
It is about this line:
if ($this->config['reconnect']) {
$this->getChannel()->getConnection()->reconnect();
}
There is no reconnect param. Can you fix this i.e. by adding isset call?
The issue in AMQP.php is indirect, and the class itself doesn't cause the error on its own.
In my case, however, the AMQP class is extended and the default configuration is overridden, so the reconnect parameter is missing. I realize that with custom implementations one has to adapt to upstream changes, but I don't think anyone expects breaking changes when updating a package at the patch level (from 3.0.0 to 3.0.1). In a test environment, a warning often interrupts execution and fails the tests.
The class isn't marked as final, and the $config isn't private, so I suspect there may be similar implementations elsewhere.
So, this is just something to consider, not a critical must-have.
Activity
W0rma commentedon Dec 5, 2025
I can not reproduce this issue in my own project.
The module even defines a default value for "reconnect" here.
Which version of Codeception do you use?
borutainfo commentedon Dec 5, 2025
Hi, sorry, I wasn't precise enough.
The issue in
AMQP.phpis indirect, and the class itself doesn't cause the error on its own.In my case, however, the AMQP class is extended and the default configuration is overridden, so the
reconnectparameter is missing. I realize that with custom implementations one has to adapt to upstream changes, but I don't think anyone expects breaking changes when updating a package at the patch level (from3.0.0to3.0.1). In a test environment, a warning often interrupts execution and fails the tests.The class isn't marked as final, and the
$configisn't private, so I suspect there may be similar implementations elsewhere.So, this is just something to consider, not a critical must-have.