-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathphpstan.neon
More file actions
43 lines (41 loc) · 1.37 KB
/
phpstan.neon
File metadata and controls
43 lines (41 loc) · 1.37 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
includes:
- vendor/spaze/phpstan-disallowed-calls/extension.neon
parameters:
tmpDir: /tmp/phpstan
bootstrapFiles:
- app/inc/config.php
paths:
- app
- public
ignoreErrors:
-
message: "#^Variable \\$url might not be defined\\.#"
count: 1
path: app/inc/init.php
-
message: "#^Comparison operation \"\\>\" between int\\<[0-9]+, max\\> and [0-9]+ is always true\\.#"
count: 1
path: app/controllers/release.php
-
message: "#^Strict comparison using !== between [0-9]+ and [0-9]+ will always evaluate to false\\.$#"
count: 1
path: app/models/home.php
- '#.+?function array_multisort is passed by reference, so it expects variables only#'
reportUnmatchedIgnoredErrors: false
treatPhpDocTypesAsCertain: false
level: 6
disallowedFunctionCalls:
-
function:
- 'var_dump()'
- 'dd()'
- 'bdump()'
- 'dump()'
- 'error_log()'
message: 'Do not use Debug calls in production'
disallowedStaticCalls:
-
method: 'ReleaseInsights\Debug::dump()'
message: 'Do not use Debug calls in production'
allowIn:
- app/classes/ReleaseInsights/Performance.php