Closed flashgordono closed 10 months ago
i can confirm!
Why was this not caught via CI in https://github.com/contao/contao/pull/6417 ?
The test mocks the connection. That fits. Unfortunately I don't know where the Symfony conifg is tested!? :-)
We don't test for a valid DI config currently - but I assumed stuff like this would be caught by our functional tests at least.
Affected version(s)
4.13.33
Description
I got following Error after updating to 4.13.33
console.CRITICAL: Error thrown while running command "list --format=json". Message: "Contao\CoreBundle\Command\UserListCommand::__construct(): Argument #1 ($connection) must be of type Doctrine\DBAL\Connection, Contao\CoreBundle\Framework\ContaoFramework given, called in /public_html/var/cache/prod/ContainerBU0GqzV/getContao_Command_UserListService.php on line 23" {"exception":"[object] (TypeError(code: 0): Contao\\CoreBundle\\Command\\UserListCommand::__construct(): Argument #1 ($connection) must be of type Doctrine\\DBAL\\Connection, Contao\\CoreBundle\\Framework\\ContaoFramework given, called in /public_html/var/cache/prod/ContainerBU0GqzV/getContao_Command_UserListService.php on line 23 at /public_html/vendor/contao/core-bundle/src/Command/UserListCommand.php:34)","command":"list --format=json","message":"Contao\\CoreBundle\\Command\\UserListCommand::__construct(): Argument #1 ($connection) must be of type Doctrine\\DBAL\\Connection, Contao\\CoreBundle\\Framework\\ContaoFramework given, called in /public_html/var/cache/prod/ContainerBU0GqzV/getContao_Command_UserListService.php on line 23"} []
Quickfix: No error after locking to version 4.13.32