Skip to content

Commit 9973724

Browse files
committed
Fix PHPStan errors for add/addCommand
Signed-off-by: bota <Bota@dotkernel.com>
1 parent d0b7a4d commit 9973724

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Swoole/Delegators/TCPServerDelegator.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,11 @@ 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, method.notFound */
67+
/** @phpstan-ignore function.alreadyNarrowedType */
6868
if (method_exists($application, 'addCommand')) {
6969
$application->addCommand($commandInstance);
7070
} else {
71+
/** @phpstan-ignore method.notFound */
7172
$application->add($commandInstance);
7273
}
7374

0 commit comments

Comments
 (0)