-
Notifications
You must be signed in to change notification settings - Fork 142
/
phpstan.neon
38 lines (38 loc) · 1.37 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
parameters:
level: 8
paths:
- src/
treatPhpDocTypesAsCertain: false
bootstrapFiles:
- %rootDir%/../../../tests/bootstrap.php
excludePaths:
- %rootDir%/../../../src/TestSuite/*
- %rootDir%/../../../src/Utility/Mime.php
- %rootDir%/../../../src/View/Helper/QrCodeHelper.php
reportUnmatchedIgnoredErrors: false
ignoreErrors:
-
identifier: missingType.generics
-
identifier: missingType.iterableValue
-
message: '#Undefined variable: .+#'
path: '%rootDir%/../../../src/View/Helper/TreeHelper.php'
-
message: '#Variable \$.+ might not be defined.#'
path: '%rootDir%/../../../src/View/Helper/TreeHelper.php'
-
message: '#Negated boolean expression is always true.#'
path: '%rootDir%/../../../src/View/Helper/TreeHelper.php'
-
message: '#Result of \|\| is always true.#'
path: '%rootDir%/../../../src/View/Helper/TreeHelper.php'
-
message: '#Cannot unset offset string on array.+\.#'
path: '%rootDir%/../../../src/Utility/Language.php'
-
message: '#Instanceof between mixed and .+ComparisonExpression will always evaluate to false\.#'
path: '%rootDir%/../../../src/Model/Behavior/BitmaskedBehavior.php'
- '#Parameter \#4 \$flags of function preg_match expects TFlags of 0\|256\|512\|768, int given.#'
- '#Parameter \#2 \$\w+ of function datefmt_format expects .+, DateTimeInterface given.#'
- '#Unsafe usage of new static\(\)#'