@@ -24,6 +24,19 @@ parametersSchema:
2424 ?allowIn : listOf (string ()),
2525 ?allowExceptIn : listOf (string ()),
2626 ?disallowIn : listOf (string ()),
27+ ?allowInClassWithAttributes : listOf (string ()),
28+ ?allowExceptInClassWithAttributes : listOf (string ()),
29+ ?disallowInClassWithAttributes : listOf (string ()),
30+ ?allowInFunctionsWithAttributes : listOf (string ()),
31+ ?allowInMethodsWithAttributes : listOf (string ()),
32+ ?allowExceptInFunctionsWithAttributes : listOf (string ()),
33+ ?allowExceptInMethodsWithAttributes : listOf (string ()),
34+ ?disallowInFunctionsWithAttributes : listOf (string ()),
35+ ?disallowInMethodsWithAttributes : listOf (string ()),
36+ ?allowInClassWithMethodAttributes : listOf (string ()),
37+ ?allowExceptInClassWithMethodAttributes : listOf (string ()),
38+ ?disallowInClassWithMethodAttributes : listOf (string ()),
39+ ?allowInUse : bool (),
2740 ?errorIdentifier : string (),
2841 ?errorTip : string (),
2942 ])
@@ -37,6 +50,19 @@ parametersSchema:
3750 ?allowIn : listOf (string ()),
3851 ?allowExceptIn : listOf (string ()),
3952 ?disallowIn : listOf (string ()),
53+ ?allowInClassWithAttributes : listOf (string ()),
54+ ?allowExceptInClassWithAttributes : listOf (string ()),
55+ ?disallowInClassWithAttributes : listOf (string ()),
56+ ?allowInFunctionsWithAttributes : listOf (string ()),
57+ ?allowInMethodsWithAttributes : listOf (string ()),
58+ ?allowExceptInFunctionsWithAttributes : listOf (string ()),
59+ ?allowExceptInMethodsWithAttributes : listOf (string ()),
60+ ?disallowInFunctionsWithAttributes : listOf (string ()),
61+ ?disallowInMethodsWithAttributes : listOf (string ()),
62+ ?allowInClassWithMethodAttributes : listOf (string ()),
63+ ?allowExceptInClassWithMethodAttributes : listOf (string ()),
64+ ?disallowInClassWithMethodAttributes : listOf (string ()),
65+ ?allowInUse : bool (),
4066 ?errorIdentifier : string (),
4167 ?errorTip : string (),
4268 ])
@@ -75,6 +101,18 @@ parametersSchema:
75101 ?disallowParamFlags : arrayOf (anyOf (int (), structure ([position : int (), ?value : int (), ?typeString : string (), ?name : string ()])), anyOf (int (), string ())),
76102 ?allowExceptCaseInsensitiveParams : arrayOf (anyOf (int (), string (), bool (), structure ([position : int (), ?value : anyOf (int (), string (), bool ()), ?typeString : string (), ?name : string ()])), anyOf (int (), string ())),
77103 ?disallowCaseInsensitiveParams : arrayOf (anyOf (int (), string (), bool (), structure ([position : int (), ?value : anyOf (int (), string (), bool ()), ?typeString : string (), ?name : string ()])), anyOf (int (), string ())),
104+ ?allowInClassWithAttributes : listOf (string ()),
105+ ?allowExceptInClassWithAttributes : listOf (string ()),
106+ ?disallowInClassWithAttributes : listOf (string ()),
107+ ?allowInFunctionsWithAttributes : listOf (string ()),
108+ ?allowInMethodsWithAttributes : listOf (string ()),
109+ ?allowExceptInFunctionsWithAttributes : listOf (string ()),
110+ ?allowExceptInMethodsWithAttributes : listOf (string ()),
111+ ?disallowInFunctionsWithAttributes : listOf (string ()),
112+ ?disallowInMethodsWithAttributes : listOf (string ()),
113+ ?allowInClassWithMethodAttributes : listOf (string ()),
114+ ?allowExceptInClassWithMethodAttributes : listOf (string ()),
115+ ?disallowInClassWithMethodAttributes : listOf (string ()),
78116 ?errorIdentifier : string (),
79117 ?errorTip : string (),
80118 ])
@@ -113,6 +151,18 @@ parametersSchema:
113151 ?disallowParamFlags : arrayOf (anyOf (int (), structure ([position : int (), ?value : int (), ?typeString : string (), ?name : string ()])), anyOf (int (), string ())),
114152 ?allowExceptCaseInsensitiveParams : arrayOf (anyOf (int (), string (), bool (), structure ([position : int (), ?value : anyOf (int (), string (), bool ()), ?typeString : string (), ?name : string ()])), anyOf (int (), string ())),
115153 ?disallowCaseInsensitiveParams : arrayOf (anyOf (int (), string (), bool (), structure ([position : int (), ?value : anyOf (int (), string (), bool ()), ?typeString : string (), ?name : string ()])), anyOf (int (), string ())),
154+ ?allowInClassWithAttributes : listOf (string ()),
155+ ?allowExceptInClassWithAttributes : listOf (string ()),
156+ ?disallowInClassWithAttributes : listOf (string ()),
157+ ?allowInFunctionsWithAttributes : listOf (string ()),
158+ ?allowInMethodsWithAttributes : listOf (string ()),
159+ ?allowExceptInFunctionsWithAttributes : listOf (string ()),
160+ ?allowExceptInMethodsWithAttributes : listOf (string ()),
161+ ?disallowInFunctionsWithAttributes : listOf (string ()),
162+ ?disallowInMethodsWithAttributes : listOf (string ()),
163+ ?allowInClassWithMethodAttributes : listOf (string ()),
164+ ?allowExceptInClassWithMethodAttributes : listOf (string ()),
165+ ?disallowInClassWithMethodAttributes : listOf (string ()),
116166 ?errorIdentifier : string (),
117167 ?errorTip : string (),
118168 ])
@@ -151,6 +201,18 @@ parametersSchema:
151201 ?disallowParamFlags : arrayOf (anyOf (int (), structure ([position : int (), ?value : int (), ?typeString : string (), ?name : string ()])), anyOf (int (), string ())),
152202 ?allowExceptCaseInsensitiveParams : arrayOf (anyOf (int (), string (), bool (), structure ([position : int (), ?value : anyOf (int (), string (), bool ()), ?typeString : string (), ?name : string ()])), anyOf (int (), string ())),
153203 ?disallowCaseInsensitiveParams : arrayOf (anyOf (int (), string (), bool (), structure ([position : int (), ?value : anyOf (int (), string (), bool ()), ?typeString : string (), ?name : string ()])), anyOf (int (), string ())),
204+ ?allowInClassWithAttributes : listOf (string ()),
205+ ?allowExceptInClassWithAttributes : listOf (string ()),
206+ ?disallowInClassWithAttributes : listOf (string ()),
207+ ?allowInFunctionsWithAttributes : listOf (string ()),
208+ ?allowInMethodsWithAttributes : listOf (string ()),
209+ ?allowExceptInFunctionsWithAttributes : listOf (string ()),
210+ ?allowExceptInMethodsWithAttributes : listOf (string ()),
211+ ?disallowInFunctionsWithAttributes : listOf (string ()),
212+ ?disallowInMethodsWithAttributes : listOf (string ()),
213+ ?allowInClassWithMethodAttributes : listOf (string ()),
214+ ?allowExceptInClassWithMethodAttributes : listOf (string ()),
215+ ?disallowInClassWithMethodAttributes : listOf (string ()),
154216 ?errorIdentifier : string (),
155217 ?errorTip : string (),
156218 ])
@@ -221,6 +283,18 @@ parametersSchema:
221283 ?disallowParamFlags : arrayOf (anyOf (int (), structure ([position : int (), ?value : int (), ?typeString : string (), ?name : string ()])), anyOf (int (), string ())),
222284 ?allowExceptCaseInsensitiveParams : arrayOf (anyOf (int (), string (), bool (), structure ([position : int (), ?value : anyOf (int (), string (), bool ()), ?typeString : string (), ?name : string ()])), anyOf (int (), string ())),
223285 ?disallowCaseInsensitiveParams : arrayOf (anyOf (int (), string (), bool (), structure ([position : int (), ?value : anyOf (int (), string (), bool ()), ?typeString : string (), ?name : string ()])), anyOf (int (), string ())),
286+ ?allowInClassWithAttributes : listOf (string ()),
287+ ?allowExceptInClassWithAttributes : listOf (string ()),
288+ ?disallowInClassWithAttributes : listOf (string ()),
289+ ?allowInFunctionsWithAttributes : listOf (string ()),
290+ ?allowInMethodsWithAttributes : listOf (string ()),
291+ ?allowExceptInFunctionsWithAttributes : listOf (string ()),
292+ ?allowExceptInMethodsWithAttributes : listOf (string ()),
293+ ?disallowInFunctionsWithAttributes : listOf (string ()),
294+ ?disallowInMethodsWithAttributes : listOf (string ()),
295+ ?allowInClassWithMethodAttributes : listOf (string ()),
296+ ?allowExceptInClassWithMethodAttributes : listOf (string ()),
297+ ?disallowInClassWithMethodAttributes : listOf (string ()),
224298 ?errorIdentifier : string (),
225299 ?errorTip : string (),
226300 ])
@@ -240,6 +314,7 @@ parametersSchema:
240314
241315services :
242316 - Spaze\PHPStan\Rules\Disallowed\Allowed\Allowed
317+ - Spaze\PHPStan\Rules\Disallowed\Allowed\AllowedConfigFactory
243318 - Spaze\PHPStan\Rules\Disallowed\Allowed\AllowedPath
244319 - Spaze\PHPStan\Rules\Disallowed\DisallowedAttributeFactory
245320 - Spaze\PHPStan\Rules\Disallowed\DisallowedCallFactory
@@ -261,6 +336,7 @@ services:
261336 - Spaze\PHPStan\Rules\Disallowed\RuleErrors\DisallowedCallsRuleErrors
262337 - Spaze\PHPStan\Rules\Disallowed\RuleErrors\DisallowedVariableRuleErrors
263338 - Spaze\PHPStan\Rules\Disallowed\Type\TypeResolver
339+ - Spaze\PHPStan\Rules\Disallowed\Usages\NamespaceUsageFactory
264340 -
265341 factory : Spaze\PHPStan\Rules\Disallowed\Usages\NamespaceUsages (forbiddenNamespaces : %disallowedNamespaces% )
266342 tags :
0 commit comments