-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon
49 lines (49 loc) · 1.53 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
includes:
- vendor/proget-hq/phpstan-yii2/extension.neon
parameters:
level: max
bootstrapFiles:
- .phpstan/constants.php
scanFiles:
- vendor/yiisoft/yii2/Yii.php
- vendor/yiisoft/yii2/base/Widget.php
- vendor/yiisoft/yii2/base/ViewContextInterface.php
stubFiles:
- .phpstan/stubs/View.stub
paths:
- assets
- commands
- components
- config
- controllers
- entities
- filters
- helpers
- mail
- messages
- migrations
- models
- modules
#- tests
- traits
- views
#- web
- widgets
excludePaths:
analyse:
- commands/WebsiteController.php
- components/AmazonProductDetail.php
- components/Fingerboard.php
- components/Shortcode.php
- components/Template.php
yii2:
config_path: %rootDir%/../../../config/test.php
ignoreErrors:
- '#Call to an undefined method yii\\base\\View::registerLinkTag#'
- '#Access to an undefined property yii\\console\\Application|yii\\web\\Application::\$shortcode\.#'
- '#PHPDoc tag @var for variable .+ has no value type specified in iterable type .+models.+#'
- '#PHPDoc tag @var for variable .+ has no value type specified in iterable type array.#'
- '#Method .+ has parameter .+ with no value type specified in iterable type .+models.+#'
- '#Method .+ return type has no value type specified in iterable type .+models.+#'
- '#Method .+ return type has no value type specified in iterable type array.#'
- '#Property .+ type has no value type specified in iterable type .+models.+#'