forked from symfony/panther
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon
20 lines (20 loc) · 1.03 KB
/
phpstan.neon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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\(\)\.#'
# 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\(\)#'