Repository navigation
Expand file tree
/
Copy pathextension-nette.neon
More file actions
154 lines (139 loc) 路 4.58 KB
/
Copy pathextension-nette.neon
File metadata and controls
154 lines (139 loc) 路 4.58 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
parameters:
universalObjectCratesClasses:
- Nette\Bridges\ApplicationLatte\DefaultTemplate
- Nette\Database\Row
- Nette\Http\SessionSection
- Nette\Security\SimpleIdentity
- Nette\Utils\Html
ignoreErrors:
-
# Form event-handler callbacks (onSuccess, onClick, ...) receive data coerced
# via reflection to whatever type the callback declares (stdClass, array, a DTO),
# so a data parameter narrower than the declared array|object union is valid at
# runtime. Gated on the assigned value being a callable.
identifier: assign.propertyType
message: '#Property Nette\\Forms\\(Form|Container|Controls\\SubmitButton)::\$on(Success|Error|Submit|Render|Validate|Click|InvalidClick) .* does not accept .*(Closure|callable)\(#'
reportUnmatched: false
nette:
assets:
mapping: []
database:
mapping:
tables: []
parametersSchema:
nette: structure([
assets: structure([
mapping: arrayOf(string())
])
database: structure([
mapping: structure([
tables: arrayOf(string(), string())
])
])
])
services:
# nette/assets
-
create: Nette\PHPStan\Assets\MapperTypeResolver(
mapping: %nette.assets.mapping%
)
-
create: Nette\PHPStan\Assets\GetMapperReturnTypeExtension
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
-
create: Nette\PHPStan\Assets\MapperGetAssetExtension(
className: Nette\Assets\FilesystemMapper
)
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
-
create: Nette\PHPStan\Assets\MapperGetAssetExtension(
className: Nette\Assets\ViteMapper
)
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
-
create: Nette\PHPStan\Assets\RegistryGetAssetExtension
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
# nette/application
-
create: Nette\PHPStan\Application\RethrowAbortExceptionRule
tags: [phpstan.rules.rule]
# nette/component-model
-
create: Nette\PHPStan\Components\ComponentTreeResolver(@defaultAnalysisParser)
-
create: Nette\PHPStan\ComponentModel\GetComponentReturnTypeExtension
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
# nette/database
-
create: Nette\PHPStan\Database\TableRowTypeResolver(
tables: %nette.database.mapping.tables%
)
-
create: Nette\PHPStan\Database\ExplorerTableReturnTypeExtension
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
-
create: Nette\PHPStan\Database\ActiveRowRelatedReturnTypeExtension
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
-
create: Nette\PHPStan\Database\ActiveRowRefReturnTypeExtension
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
-
create: Nette\PHPStan\Database\SelectionInsertReturnTypeExtension
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
# nette/di
-
create: Nette\PHPStan\DI\InjectPropertyExtension
tags: [phpstan.properties.readWriteExtension]
# nette/forms
-
create: Nette\PHPStan\Forms\FormContainerReturnTypeExtension
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
# nette/schema
-
create: Nette\PHPStan\Schema\ExpectArrayReturnTypeExtension
tags: [phpstan.broker.dynamicStaticMethodReturnTypeExtension]
-
create: Nette\PHPStan\Schema\ExpectTypeReturnTypeExtension
tags: [phpstan.broker.dynamicStaticMethodReturnTypeExtension]
# nette/tester
-
create: Nette\PHPStan\Php\ArrowFunctionVoidIgnoreExtension([
test
testException
testNoError
Tester\Assert::exception
Tester\Assert::throws
Tester\Assert::error
Tester\Assert::noError
])
tags: [phpstan.ignoreErrorExtension]
-
create: Nette\PHPStan\Tester\AssertTypeNarrowingExtension
tags: [phpstan.typeSpecifier.staticMethodTypeSpecifyingExtension]
# nette/utils
-
create: Nette\PHPStan\Utils\StringsRegexHelper
-
create: Nette\PHPStan\Utils\FalseToNullReturnTypeExtension
tags: [phpstan.broker.dynamicStaticMethodReturnTypeExtension]
-
create: Nette\PHPStan\Utils\StringsReturnTypeExtension
tags: [phpstan.broker.dynamicStaticMethodReturnTypeExtension]
-
create: Nette\PHPStan\Utils\StringsReplaceClosureTypeExtension
tags: [phpstan.staticMethodParameterClosureTypeExtension]
-
create: Nette\PHPStan\Utils\StringsMatchTypeSpecifyingExtension
tags: [phpstan.typeSpecifier.staticMethodTypeSpecifyingExtension]
-
create: Nette\PHPStan\Utils\ArraysInvokeTypeExtension
tags: [phpstan.broker.dynamicStaticMethodReturnTypeExtension]
-
create: Nette\PHPStan\Utils\CallbackToReflectionIgnoreExtension
tags: [phpstan.ignoreErrorExtension]
-
create: Nette\PHPStan\Utils\HtmlMethodsClassReflectionExtension
tags: [phpstan.broker.methodsClassReflectionExtension]
-
create: Nette\PHPStan\Utils\ValidRegularExpressionRule
tags: [phpstan.rules.rule]