Skip to content

Commit c56ee96

Browse files
committed
fix phpstan
1 parent b01d36e commit c56ee96

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/Doctrine/DBAL/Tools/Console/ConsoleRunner.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
use Symfony\Component\Console\Command\Command;
1313
use Symfony\Component\Console\Helper\HelperSet;
1414
use TypeError;
15-
use function assert;
1615
use function sprintf;
1716
use function trigger_error;
1817
use const E_USER_DEPRECATED;
@@ -51,7 +50,6 @@ public static function run($helperSetOrConnectionProvider, $commands = [])
5150
$cli->setCatchExceptions(true);
5251

5352
$connectionProvider = null;
54-
assert($connectionProvider instanceof ConnectionProvider || $connectionProvider === null);
5553
if ($helperSetOrConnectionProvider instanceof HelperSet) {
5654
@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);
5755
$connectionProvider = null;

0 commit comments

Comments
 (0)