- 2.13.x: Bump Psalm to 5.0.0 and fix errors for Symfony 6.2 (#10261) Leverage Lexer's Token type (follow up)
Showing 2 of 5 files from the diff.
lib/Doctrine/ORM/Query/Parser.php
changed.
Other files ignored by Codecov
psalm-baseline.xml
has changed.
composer.json
has changed.
@@ -7,9 +7,12 @@
Loading
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,7 +36,10 @@
Loading
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 |
@@ -500,7 +500,7 @@
Loading
500 | 500 | * @param bool $resetPeek Reset peek after finding the closing parenthesis. |
|
501 | 501 | * |
|
502 | 502 | * @return mixed[] |
|
503 | - | * @psalm-return array{value: string, type: int|null|string, position: int}|null |
|
503 | + | * @psalm-return Token|null |
|
504 | 504 | */ |
|
505 | 505 | private function peekBeyondClosingParenthesis(bool $resetPeek = true): ?array |
|
506 | 506 | { |
Files | Coverage |
---|---|
lib/Doctrine/ORM | 84.75% |
Project Totals (371 files) | 84.75% |
3587131291
3587066346
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file.
The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files.
The size and color of each slice is representing the number of statements and the coverage, respectively.