Skip to content

Commit

Permalink
fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
dmaicher committed May 12, 2020
1 parent b01d36e commit c56ee96
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/Doctrine/DBAL/Tools/Console/ConsoleRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit c56ee96

Please sign in to comment.