-
-
Notifications
You must be signed in to change notification settings - Fork 227
/
phpstan.neon
27 lines (27 loc) · 2.04 KB
/
phpstan.neon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
parameters:
level: 5
paths:
- src
- tests
bootstrapFiles:
- vendor/bin/.phpunit/phpunit/vendor/autoload.php
inferPrivatePropertyTypeFromConstructor: true
excludePaths:
- tests/DummyKernel.php
# There are lots of missing phpunit classes since we are supporting multiple versions
- src/ServerExtension.php
ignoreErrors:
# False positive
- '#Call to an undefined method ReflectionType::getName\(\)\.#'
# False positive : assertNotEmpty assert that count() !== 0 on Countable
- '#Call to static method PHPUnit\\Framework\\Assert::assert(Not)?Empty\(\) with Symfony\\Component\\DomCrawler\\Crawler will always evaluate to (true|false)\.#'
# False positive : getStatus exists for PHPUnit < 10 only
- '#Call to function method_exists\(\) with \$this\(Symfony\\Component\\Panther\\PantherTestCase\) and ''getStatus'' will always evaluate to true\.#'
# False positive : PantherTestCase has no getClient method when symfony/framework-bundle (and WebTestCase) are not available
- '#Call to function method_exists\(\) with ''Symfony\\\\Component\\\\Panther\\\\PantherTestCase'' and ''getClient'' will always evaluate to true\.#'
# To fix in PHP WebDriver
- '#Parameter \#2 \$desired_capabilities of static method Facebook\\WebDriver\\Remote\\RemoteWebDriver::create\(\) expects array\|Facebook\\WebDriver\\Remote\\DesiredCapabilities\|null, Facebook\\WebDriver\\WebDriverCapabilities given\.#'
# Require a redesign of the underlying Symfony components
- '#Call to an undefined method DOMNode::getTagName\(\)\.#'
- '#Return type \(void\) of method Symfony\\Component\\Panther\\DomCrawler\\Crawler::clear\(\) should be compatible with return type \(Facebook\\WebDriver\\WebDriverElement\) of method Facebook\\WebDriver\\WebDriverElement::clear\(\)#'
- '#Return type \(ArrayIterator<int, Facebook\\WebDriver\\WebDriverElement>\) of method Symfony\\Component\\Panther\\DomCrawler\\Crawler::getIterator\(\) should be compatible with return type \(ArrayIterator<int, DOMNode>\) of method Symfony\\Component\\DomCrawler\\Crawler::getIterator\(\)#'