diff --git a/lib/Doctrine/DBAL/Tools/Console/ConsoleRunner.php b/lib/Doctrine/DBAL/Tools/Console/ConsoleRunner.php index e3389cc9e4f..f0e65c33928 100644 --- a/lib/Doctrine/DBAL/Tools/Console/ConsoleRunner.php +++ b/lib/Doctrine/DBAL/Tools/Console/ConsoleRunner.php @@ -12,7 +12,6 @@ use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Helper\HelperSet; use TypeError; -use function assert; use function sprintf; use function trigger_error; use const E_USER_DEPRECATED; @@ -51,7 +50,6 @@ public static function run($helperSetOrConnectionProvider, $commands = []) $cli->setCatchExceptions(true); $connectionProvider = null; - assert($connectionProvider instanceof ConnectionProvider || $connectionProvider === null); if ($helperSetOrConnectionProvider instanceof HelperSet) { @trigger_error(sprintf('Passing an instance of "%s" as the first argument is deprecated. Pass an instance of "%s" instead.', HelperSet::class, ConnectionProvider::class), E_USER_DEPRECATED); $connectionProvider = null;