Skip to content

Commit 5a35c4a

Browse files
committed
Fix static checks in Symfony 5
1 parent 7019b93 commit 5a35c4a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

phpstan.neon

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
parameters:
22
level: max
33
reportUnmatchedIgnoredErrors: false
4-
checkMissingIterableValueType: false
54
paths:
65
- src
76

@@ -16,4 +15,6 @@ parameters:
1615
- 'tests/Application/src/**.php'
1716

1817
ignoreErrors:
18+
-
19+
identifier: missingType.iterableValue
1920
- '/Parameter #1 \$configuration of method Symfony\\Component\\DependencyInjection\\Extension\\Extension::processConfiguration\(\) expects Symfony\\Component\\Config\\Definition\\ConfigurationInterface, Symfony\\Component\\Config\\Definition\\ConfigurationInterface\|null given\./'

src/Command/ServiceChangesCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,8 @@ private function applyInnerStrategy(
415415
): bool {
416416
/**
417417
* @psalm-suppress InternalProperty
418+
*
419+
* @var string|null $innerServiceId
418420
*/
419421
$innerServiceId = $definition->innerServiceId;
420422
if ($innerServiceId !== null && str_contains($innerServiceId, '.inner')) {

0 commit comments

Comments
 (0)