Skip to content

Commit

Permalink
replace asserting doctrine is instance of Registry with assert it is …
Browse files Browse the repository at this point in the history
…proper interface
  • Loading branch information
Slawomir Rostek committed Feb 11, 2021
1 parent 85f0b84 commit 3176982
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Command/Helper/DoctrineCommandHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
namespace Doctrine\Bundle\MigrationsBundle\Command\Helper;

use Doctrine\Bundle\DoctrineBundle\Command\Proxy\DoctrineCommandHelper as BaseDoctrineCommandHelper;
use Doctrine\Bundle\DoctrineBundle\Registry;
use Doctrine\DBAL\Sharding\PoolingShardConnection;
use Doctrine\DBAL\Tools\Console\Helper\ConnectionHelper;
use Doctrine\Persistence\ManagerRegistry;
use LogicException;
use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Component\Console\Input\InputInterface;
Expand All @@ -27,7 +27,7 @@ public static function setApplicationHelper(Application $application, InputInter
{
$container = $application->getKernel()->getContainer();
$doctrine = $container->get('doctrine');
assert($doctrine instanceof Registry);
assert($doctrine instanceof ManagerRegistry);

$managerNames = $doctrine->getManagerNames();

Expand Down

0 comments on commit 3176982

Please sign in to comment.