Skip to content

Commit cd7501b

Browse files
authored
ci: fix PHPStan errors (#412)
1 parent 0cb4c05 commit cd7501b

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

phpstan.neon

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ parameters:
99
ignoreErrors:
1010
- message: '#.+#'
1111
path: tests/DummyKernel.php
12-
# Expected
13-
- '#Method Symfony\\Component\\Panther\\PantherTestCase::createPantherClient\(\) should return Symfony\\Component\\Panther\\Client but returns Symfony\\Component\\BrowserKit\\AbstractBrowser\|null\.#'
1412
# False positive
1513
- '#Call to an undefined method ReflectionType::getName\(\)\.#'
1614
# To fix in PHP WebDriver

src/PantherTestCaseTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ protected static function createPantherClient(array $options = [], array $kernel
170170
(static::CHROME === $browser && $browserManager instanceof ChromeManager) ||
171171
(static::FIREFOX === $browser && $browserManager instanceof FirefoxManager)
172172
) {
173-
return $callGetClient ? self::getClient(self::$pantherClient) : self::$pantherClient;
173+
return $callGetClient ? self::getClient(self::$pantherClient) : self::$pantherClient; // @phpstan-ignore-line
174174
}
175175
}
176176

@@ -186,7 +186,7 @@ protected static function createPantherClient(array $options = [], array $kernel
186186
static::bootKernel($kernelOptions); // @phpstan-ignore-line
187187
}
188188

189-
return $callGetClient ? self::getClient(self::$pantherClient) : self::$pantherClient;
189+
return $callGetClient ? self::getClient(self::$pantherClient) : self::$pantherClient; // @phpstan-ignore-line
190190
}
191191

192192
/**

0 commit comments

Comments
 (0)