Skip to content

Commit 99a0959

Browse files
committed
Fix PHPStan warning for method_exists check
Signed-off-by: bota <Bota@dotkernel.com>
1 parent 2f24bc4 commit 99a0959

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/Swoole/Delegators/TCPServerDelegator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ 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 */
6768
if (method_exists($application, 'addCommand')) {
6869
$application->addCommand($commandInstance);
6970
} else {

0 commit comments

Comments
 (0)