-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon
More file actions
46 lines (44 loc) · 1.76 KB
/
phpstan.neon
File metadata and controls
46 lines (44 loc) · 1.76 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
includes:
- vendor/phpstan/phpstan-doctrine/extension.neon
- vendor/phpstan/phpstan-doctrine/rules.neon
- vendor/phpstan/phpstan-symfony/extension.neon
- vendor/phpstan/phpstan-symfony/rules.neon
- ./vendor/yamadashy/phpstan-friendly-formatter/extension.neon
- vendor/spaze/phpstan-disallowed-calls/extension.neon
parameters:
disallowedFunctionCalls:
-
function: 'exec()'
message: 'for security reasons. Use Symfony Process component instead.'
-
function: 'eval()'
message: 'for security reasons.'
-
function: 'system()'
message: 'for security reasons.'
-
function: 'passthru()'
message: 'for security reasons.'
-
function: 'shell_exec()'
message: 'for security reasons.'
-
function: 'popen()'
message: 'is risky. Ensure you are handling the process handle correctly.'
friendly:
lineBefore: 0 # Number of lines to display before error line (default: 2)
lineAfter: 0 # Number of lines to display after error line (default: 2)
errorFormat: friendly
symfony:
containerXmlPath: var/cache/dev/App_KernelDevDebugContainer.xml
ignoreErrors:
# Ignore error by identifier
- identifier: doctrine.columnType
# - identifier: doctrine.associationType
# - identifier: missingType.generics
# - identifier: missingType.iterableValue
# https://github.com/symfony/symfony/issues/36202#issuecomment-769226149
bootstrapFiles:
- vendor/bin/.phpunit/phpunit/vendor/autoload.php
# Temporary directory where PHPStan stores its cache and working files during analysis.
tmpDir: var/cache/phpstan