-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathphpstan.neon
51 lines (51 loc) · 2.71 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
parameters:
treatPhpDocTypesAsCertain: false
level: 8
paths:
- ./
excludePaths:
- %rootDir%/../../../tests/*
- %rootDir%/../../../vendor/*
ignoreErrors:
-
identifier: missingType.iterableValue
-
identifier: missingType.generics
-
message: '#Argument of an invalid type DOMDocument\|SimpleXMLElement\|false supplied for foreach, only iterables are supported\.#'
path: src/Zend/Config/Xml.php
-
message: '#Parameter \#1 \$element of method Zend_Config_Xml::_processExtends\(\) expects SimpleXMLElement, DOMDocument\|SimpleXMLElement\|false given\.#'
path: src/Zend/Config/Xml.php
# Tried to fix this one by only returning an array in the _parseIniFile method, but then a test fails
-
message: '#Argument of an invalid type array\|false supplied for foreach, only iterables are supported\.#'
path: src/Zend/Config/Ini.php
# Callable can be an array
-
message: '#Parameter \#1 \$callback of function set_error_handler expects \(callable\(int, string, string, int(, array)?\): bool\)\|null, array{\$this\(Zend_Config_Ini\), ._loadFileErrorHandl….\} given\.#'
path: src/Zend/Config/Ini.php
-
message: '#Parameter \#1 \$callback of function set_error_handler expects \(callable\(int, string, string, int(, array)?\): bool\)\|null, array\{\$this\(Zend_Config_Json\), ._loadFileErrorHandl….\} given\.#'
path: src/Zend/Config/Json.php
-
message: '#Parameter \#1 \$callback of function set_error_handler expects \(callable\(int, string, string, int(, array)?\): bool\)\|null, array\{\$this\(Zend_Config_Xml\), ._loadFileErrorHandl….\} given\.#'
path: src/Zend/Config/Xml.php
-
message: '#Parameter \#1 \$callback of function set_error_handler expects \(callable\(int, string, string, int(, array)?\): bool\)\|null, array\{\$this\(Zend_Config_Yaml\), ._loadFileErrorHandl….\} given\.#'
path: src/Zend/Config/Yaml.php
-
message: '#^Strict comparison using \!\=\= between list\<string\> and false will always evaluate to true\.$#'
identifier: notIdentical.alwaysTrue
count: 2
path: src/Zend/Config/Ini.php
-
message: '#^Negated boolean expression is always false\.$#'
identifier: booleanNot.alwaysFalse
count: 1
path: src/Zend/Config/Writer/Xml.php
-
message: '#^Negated boolean expression is always false\.$#'
identifier: booleanNot.alwaysFalse
count: 1
path: src/Zend/Config/Xml.php