-
Notifications
You must be signed in to change notification settings - Fork 266
Expand file tree
/
Copy pathphpstan.neon
More file actions
83 lines (82 loc) · 2.3 KB
/
phpstan.neon
File metadata and controls
83 lines (82 loc) · 2.3 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
parameters:
level: 3
phpVersion: 80400
stubFiles:
- phpstan-stubs.php
scanFiles:
- phpstan-stubs.php
- lib/include/setup.php
- lib/include/setup_i18n.php
paths:
- admin
- api
- assertions
- cc
- cron
- dev
- ext
- gclass
- lti
- mod
- tool
- settings
- store
- util
- index.php
- login.php
- logout.php
- top.php
- tsugi.php
- about.php
excludePaths:
- vendor/*
- locale/*
- _files/*
- mod/tsugi-php-samples/*
reportUnmatchedIgnoredErrors: true
reportPossiblyNonexistentGeneralArrayOffset: true
reportPossiblyNonexistentConstantArrayOffset: true
checkUninitializedProperties: true
checkNullables: true
checkExtraArguments: true
checkMissingCallableSignature: true
checkMaybeUndefinedVariables: false
services:
-
class: PHPStan\Rules\DeadCode\UnusedPrivateMethodRule
tags:
- phpstan.rules.rule
-
class: PHPStan\Rules\DeadCode\UnusedPrivateConstantRule
tags:
- phpstan.rules.rule
-
class: PHPStan\Rules\DeadCode\UnusedPrivatePropertyRule
arguments:
extensionProvider: @PHPStan\Rules\Properties\ReadWritePropertiesExtensionProvider
alwaysWrittenTags: []
alwaysReadTags: []
checkUninitializedProperties: %checkUninitializedProperties%
tags:
- phpstan.rules.rule
-
class: PHPStan\Rules\DeadCode\UnreachableStatementRule
tags:
- phpstan.rules.rule
nonexistentOffsetCheck:
class: PHPStan\Rules\Arrays\NonexistentOffsetInArrayDimFetchCheck
autowired: false
arguments:
- @PHPStan\Rules\RuleLevelHelper
- %reportMaybes%
- %reportPossiblyNonexistentGeneralArrayOffset%
- %reportPossiblyNonexistentConstantArrayOffset%
nonexistentOffsetRule:
class: PHPStan\Rules\Arrays\NonexistentOffsetInArrayDimFetchRule
autowired: false
arguments:
- @PHPStan\Rules\RuleLevelHelper
- @nonexistentOffsetCheck
- %reportMaybes%
tags:
- phpstan.rules.rule