Other files ignored by Codecov
psalm-baseline.xml
has changed.
composer.json
has changed.
7 | 7 | use Doctrine\Deprecations\Deprecation; |
|
8 | 8 | use Doctrine\ORM\EntityManagerInterface; |
|
9 | 9 | use Doctrine\ORM\Tools\Console\EntityManagerProvider; |
|
10 | + | use Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper; |
|
10 | 11 | use Symfony\Component\Console\Command\Command; |
|
11 | 12 | use Symfony\Component\Console\Input\InputInterface; |
|
12 | 13 | ||
14 | + | use function assert; |
|
15 | + | ||
13 | 16 | abstract class AbstractEntityManagerCommand extends Command |
|
14 | 17 | { |
|
15 | 18 | /** @var EntityManagerProvider|null */ |
33 | 36 | $this->getName() |
|
34 | 37 | ); |
|
35 | 38 | ||
36 | - | return $this->getHelper('em')->getEntityManager(); |
|
39 | + | $helper = $this->getHelper('em'); |
|
40 | + | assert($helper instanceof EntityManagerHelper); |
|
41 | + | ||
42 | + | return $helper->getEntityManager(); |
|
37 | 43 | } |
|
38 | 44 | ||
39 | 45 | return $input->getOption('em') === null |
Files | Coverage |
---|---|
lib/Doctrine/ORM | 84.74% |
Project Totals (371 files) | 84.74% |