-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathphpstan.neon
More file actions
41 lines (38 loc) · 1.49 KB
/
phpstan.neon
File metadata and controls
41 lines (38 loc) · 1.49 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
includes:
- vendor/spaze/phpstan-disallowed-calls/disallowed-dangerous-calls.neon
- vendor/spaze/phpstan-disallowed-calls/disallowed-execution-calls.neon
- phar://phpstan.phar/conf/bleedingEdge.neon
parameters:
level: 5
paths:
- src
excludePaths:
analyseAndScan:
- src/EventSubscriber/EntityPreUpdateSubscriber.php
- src/Migrations/*
- src/Entity/User.php
- src/Repository/Abstraction/AbstractRepository.php
- src/Entity/Abstraction/AbstractEntity.php
- src/Interface/EntityInterface.php
disallowedFunctionCalls:
-
function: 'var_dump()'
message: 'use logger instead'
-
function: 'dd()'
message: 'use logger instead'
-
function: 'dump()'
message: 'use logger instead'
-
function: 'error_log()'
message: 'use the proper error logger'
ignoreErrors:
- '#Call to an undefined method Symfony\\Contracts\\Cache\\TagAwareCacheInterface::getItem#'
- '#Call to an undefined method Symfony\\Contracts\\Cache\\TagAwareCacheInterface::save#'
- "#^Property App\\\\Entity\\\\.* type mapping mismatch\\: .*.$#"
disallowedMethodCalls:
-
method: '*::redirect()'
message: 'use safeRedirect instead'
treatPhpDocTypesAsCertain: false