forked from bolt/forms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon
30 lines (24 loc) · 984 Bytes
/
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
parameters:
level: 5
paths:
- src
scanDirectories:
# In order to 'recognize' Bolt, Twig and Carbon functions in global scope
- %currentWorkingDirectory%/vendor/bolt/core/src/
- %currentWorkingDirectory%/vendor/twig/twig/src/Extension
- %currentWorkingDirectory%/vendor/nesbot/carbon/src/Carbon
ignoreErrors:
# false positive: `TranslationInterface does not know about FieldTranslation::getValue().` Skip this error.
-
message: '#Call to an undefined method Bolt\\Extension\\ExtensionInterface#'
path: %currentWorkingDirectory%/src/*
includes:
- vendor/phpstan/phpstan-symfony/extension.neon
- vendor/phpstan/phpstan-doctrine/extension.neon
services:
-
class: Symplify\CodingStandard\Rules\ForbiddenFuncCallRule
tags: [phpstan.rules.rule]
arguments:
forbiddenFunctions: ['d', 'dd', 'dump', 'var_dump', 'extract']
- Symplify\PackageBuilder\Matcher\ArrayStringAndFnMatcher