-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon
48 lines (42 loc) · 1.3 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
includes:
- vendor/symplify/phpstan-rules/config/packages/symfony/symfony-rules.neon
- vendor/symplify/phpstan-rules/config/packages/cognitive-complexity/cognitive-complexity-rules.neon
- vendor/symplify/phpstan-rules/config/naming-rules.neon
- vendor/symplify/phpstan-rules/config/test-rules.neon
parameters:
level: 9
paths:
- src
- tests
bootstrapFiles:
- vendor/autoload.php
parallel:
maximumNumberOfProcesses: 10
checkMissingIterableValueType: false
checkGenericClassInNonGenericObjectType: false
banned_code:
nodes:
# enable detection of echo
-
type: Stmt_Echo
functions: null
# enable detection of die/exit
-
type: Expr_Exit
functions: null
# enable detection of a set of functions
-
type: Expr_FuncCall
functions:
- dump
- dd
- debug_backtrace
- exec
- passthru
- phpinfo
- print_r
- proc_open
- shell_exec
- system
- var_dump
ignoreErrors: []