Skip to content

Commit d0b7a4d

Browse files
committed
Allow unmatched PHPStan ignores for cross-version compatibility
Signed-off-by: bota <Bota@dotkernel.com>
1 parent 58ed01d commit d0b7a4d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

phpstan.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ parameters:
99
- src
1010
- test
1111
treatPhpDocTypesAsCertain: false
12+
reportUnmatchedIgnoredErrors: false

src/Swoole/Delegators/TCPServerDelegator.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,10 @@ public function __invoke(ContainerInterface $container, string $serviceName, cal
6464
$commandClass = $commandMap[$commandName];
6565
$application = new Application();
6666
$commandInstance = $container->get($commandClass);
67-
/** @phpstan-ignore function.alreadyNarrowedType */
67+
/** @phpstan-ignore function.alreadyNarrowedType, method.notFound */
6868
if (method_exists($application, 'addCommand')) {
6969
$application->addCommand($commandInstance);
7070
} else {
71-
/** @phpstan-ignore method.notFound */
7271
$application->add($commandInstance);
7372
}
7473

0 commit comments

Comments
 (0)