This repository has been archived by the owner on Oct 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon
40 lines (32 loc) · 1.57 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
parameters:
level: 5
paths:
- src
scanDirectories:
# In order to 'recognize' Twig functions in global scope
- %currentWorkingDirectory%/vendor/twig/twig/src/Extension
ignoreErrors:
# false positive: `Unreachable statement - code above always terminates.`
# Note: https://github.com/phpstan/phpstan/issues/2651 is marked as fixed, but the issue remains.
-
message: '#Unreachable statement - code above always terminates#'
path: %currentWorkingDirectory%/src/*
# false positive: `TranslationInterface does not know about FieldTranslation::getValue().` Skip this error.
-
message: '#Call to an undefined method Knp\\DoctrineBehaviors\\Contract\\Entity\\TranslationInterface#'
path: %currentWorkingDirectory%/src/*
# Parameters in Storage\Directive\OrderDirective::orderByNumericField() aren't seen as ints
-
message: '#of method Doctrine\\ORM\\Query\\Expr::substring\(\) expects int#'
path: %currentWorkingDirectory%/src/Storage/Directive/OrderDirective.php
includes:
- vendor/phpstan/phpstan-symfony/extension.neon
- vendor/phpstan/phpstan-doctrine/extension.neon
# - vendor/thecodingmachine/phpstan-safe-rule/phpstan-safe-rule.neon # make ON when thecodingmachine/safe will get stable
services:
-
class: Symplify\CodingStandard\Rules\ForbiddenFuncCallRule
tags: [phpstan.rules.rule]
arguments:
forbiddenFunctions: ['d', 'dd', 'dump', 'var_dump', 'extract']
- Symplify\PackageBuilder\Matcher\ArrayStringAndFnMatcher