-
Notifications
You must be signed in to change notification settings - Fork 9
/
phpstan.neon.dist
44 lines (39 loc) · 1.14 KB
/
phpstan.neon.dist
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
includes:
- vendor/ekino/phpstan-banned-code/extension.neon
parameters:
level: 1
bootstrapFiles:
- config/tags.php
- tests/bootstrap.php
- vendor/bin/.phpunit/phpunit/vendor/autoload.php
paths:
- 'src'
- 'tests'
excludePaths:
- tests/fixtures/app/var/
- tests/fixtures/Unit/Service/Git/bin
- src/HttpKernel/Controller/ArgumentResolver/ContentArgumentResolver.php
- src/Serializer/Normalizer/SkippingInstantiatedObjectDenormalizer.php
banned_code:
nodes:
#-
# type: Stmt_Echo
# functions: null
#-
# type: Expr_Eval
# functions: null
#-
# type: Expr_Exit
# functions: null
-
type: Expr_FuncCall
functions:
- debug_backtrace
- dump
- passthru
- phpinfo
- print_r
- proc_open
- shell_exec
- system
- var_dump