forked from Cacti/cacti
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.phpstan.neon
More file actions
48 lines (47 loc) · 1.57 KB
/
.phpstan.neon
File metadata and controls
48 lines (47 loc) · 1.57 KB
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
includes:
- phpstan-baseline.neon
parameters:
parallel:
maximumNumberOfProcesses: 8
scanDirectories:
- include
paths:
- include
- lib
- install
- .
excludePaths:
analyse:
- include/vendor/*
- plugins/*
- rector.php
analyseAndScan:
- tests/*
bootstrapFiles:
- .phpstan-bootstrap.php
- include/vendor/autoload.php
- include/config.php.dist
- include/global_constants.php
- lib/functions.php
- include/global.php
- include/global_languages.php
- include/global_arrays.php
- include/global_form.php
- include/global_settings.php
reportUnmatchedIgnoredErrors: false
ignoreErrors:
- identifier: missingType.iterableValue
# PHPStan gets confused about dynamic constants
- identifier: if.alwaysFalse
- identifier: notEqual.alwaysFalse
- identifier: notEqual.alwaysTrue
- identifier: equal.alwaysTrue
- identifier: if.alwaysTrue
- identifier: while.alwaysTrue
- identifier: greater.alwaysFalse
- identifier: identical.alwaysTrue
- identifier: identical.alwaysFalse
- identifier: booleanAnd.leftAlwaysTrue
- identifier: booleanAnd.leftAlwaysFalse
# L9 - '/^Parameter #1 \$value of function strval expects bool\|float\|int\|resource\|string\|null, mixed given.$/'
# L9 - '/^Parameter #1 \$value of function intval expects array\|bool\|float\|int\|resource\|string\|null, mixed given.$/'