-
Notifications
You must be signed in to change notification settings - Fork 637
/
phpstan.neon
54 lines (54 loc) · 1.93 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
parameters:
level: 5
paths:
- bootstrap
- src
- tests
excludePaths:
- src/config/mimeTypes.php
- src/image/*
- src/services/Images.php
- src/test/internal/*
- src/views/debug/*
- tests/_craft/*
- tests/_data/*
- tests/_output/*
- tests/_support/_generated/
scanFiles:
- lib/craft/behaviors/CustomFieldBehavior.php
- tests/_support/_generated/AcceptanceTesterActions.php
- tests/_support/_generated/FunctionalTesterActions.php
- tests/_support/_generated/GqlTesterActions.php
- tests/_support/_generated/UnitTesterActions.php
- vendor/twig/twig/src/Extension/CoreExtension.php
bootstrapFiles:
- tests/_bootstrap.php
stubFiles:
- stubs/_generated.stub
- stubs/GraphQL/Type/Definition/FieldDefinition.stub
- stubs/GraphQL/Type/Definition/ResolveInfo.stub
- stubs/samdark/log/PsrTarget.stub
- stubs/yii/base/Component.stub
- stubs/yii/base/Event.stub
- stubs/yii/base/Module.stub
- stubs/yii/BaseYii.stub
- stubs/yii/db/BaseActiveRecord.stub
- stubs/yii/db/Migration.stub
- stubs/yii/db/Query.stub
- stubs/yii/di/ServiceLocator.stub
- stubs/yii/helpers/BaseArrayHelper.stub
- stubs/yii/validators/UniqueValidator.stub
- stubs/yii/validators/Validator.stub
earlyTerminatingMethodCalls:
Craft:
- dd
yii\base\Application:
- end
yii\base\ErrorHandler:
- convertExceptionToError
ignoreErrors:
- '#Call to an undefined method yii\\web\\UrlManager::setRouteParams\(\)#'
- '#PHPDoc tag @mixin contains invalid type craft\\base\\+[a-zA-Z0-9]#'
- '#^Dead catch#'
- '#^PHPDoc tag @mixin contains invalid type CraftTrait\.$#'
- '#^Parameter \#2 \$callback of function usort expects#'