Skip to content

Commit

Permalink
Fix PHPStan errors
Browse files Browse the repository at this point in the history
  • Loading branch information
simplebus-bot committed Apr 20, 2021
1 parent 9089445 commit 498d449
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/Functional/DoctrineOrmSmokeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace SimpleBus\SymfonyBridge\Tests\Functional;

use Doctrine\ORM\EntityManager;
use Doctrine\ORM\Mapping\ClassMetadata;
use Doctrine\ORM\Tools\SchemaTool;
use LogicException;
use SimpleBus\Message\Bus\MessageBus;
Expand Down Expand Up @@ -107,7 +108,11 @@ private function createSchema(ContainerInterface $container): void
{
/** @var EntityManager $entityManager */
$entityManager = $container->get('doctrine.orm.entity_manager');

/** @var ClassMetadata[] $metadata */
$metadata = $entityManager->getMetadataFactory()->getAllMetadata();

$schemaTool = new SchemaTool($entityManager);
$schemaTool->createSchema($entityManager->getMetadataFactory()->getAllMetadata());
$schemaTool->createSchema($metadata);
}
}

0 comments on commit 498d449

Please sign in to comment.