forked from j0k3r/graby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon
35 lines (32 loc) · 1.31 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
28
29
30
31
32
33
34
35
parameters:
level: 7
paths:
- maintenance/Rector
- src
- tests
bootstrapFiles:
- vendor/bin/.phpunit/phpunit/vendor/autoload.php
ignoreErrors:
# because we check for some HTTP client to exist or not (Guzzle 5/6 & cURL)
-
message: '#Http\\Adapter\\Guzzle5\\Client\\|Http\\Adapter\\Guzzle6\\Client\\|Http\\Client\\Curl\\Client given#'
path: %currentWorkingDirectory%/tests/Extractor/HttpClientTest.php
# phpstan does not seem to recognize the class override for JSLikeHTMLElement
-
message: '#Call to an undefined method DOMElement::setInnerHtml\(\)#'
path: %currentWorkingDirectory%/src/Extractor/ContentExtractor.php
-
message: '#\$innerHTML#'
path: %currentWorkingDirectory%
# other stuff I might have fucked up with DOM* classes
-
message: '#DOMNode::\$tagName#'
path: %currentWorkingDirectory%/src/
-
message: '#DOMNode::getElementsByTagName#'
path: %currentWorkingDirectory%/src/
-
message: '#expects DOMElement, DOMNode given#'
path: %currentWorkingDirectory%/src/Graby.php
inferPrivatePropertyTypeFromConstructor: true
checkMissingIterableValueType: false