@@ -42,7 +42,7 @@ parametersSchema:
4242 ?disallowInClassWithMethodAttributes : listOf (string ()),
4343 ?allowInUse : bool (),
4444 ?errorIdentifier : string (),
45- ?errorTip : string (),
45+ ?errorTip : anyOf ( string (), listOf ( string ()) ),
4646 ])
4747 )
4848 disallowedClasses : listOf (
@@ -72,7 +72,7 @@ parametersSchema:
7272 ?disallowInClassWithMethodAttributes : listOf (string ()),
7373 ?allowInUse : bool (),
7474 ?errorIdentifier : string (),
75- ?errorTip : string (),
75+ ?errorTip : anyOf ( string (), listOf ( string ()) ),
7676 ])
7777 )
7878 disallowedMethodCalls : listOf (
@@ -125,7 +125,7 @@ parametersSchema:
125125 ?allowExceptInClassWithMethodAttributes : listOf (string ()),
126126 ?disallowInClassWithMethodAttributes : listOf (string ()),
127127 ?errorIdentifier : string (),
128- ?errorTip : string (),
128+ ?errorTip : anyOf ( string (), listOf ( string ()) ),
129129 ])
130130 )
131131 disallowedStaticCalls : listOf (
@@ -178,7 +178,7 @@ parametersSchema:
178178 ?allowExceptInClassWithMethodAttributes : listOf (string ()),
179179 ?disallowInClassWithMethodAttributes : listOf (string ()),
180180 ?errorIdentifier : string (),
181- ?errorTip : string (),
181+ ?errorTip : anyOf ( string (), listOf ( string ()) ),
182182 ])
183183 )
184184 disallowedFunctionCalls : listOf (
@@ -231,7 +231,7 @@ parametersSchema:
231231 ?allowExceptInClassWithMethodAttributes : listOf (string ()),
232232 ?disallowInClassWithMethodAttributes : listOf (string ()),
233233 ?errorIdentifier : string (),
234- ?errorTip : string (),
234+ ?errorTip : anyOf ( string (), listOf ( string ()) ),
235235 ])
236236 )
237237 disallowedConstants : listOf (
@@ -264,7 +264,7 @@ parametersSchema:
264264 ?allowExceptInClassWithMethodAttributes : listOf (string ()),
265265 ?disallowInClassWithMethodAttributes : listOf (string ()),
266266 ?errorIdentifier : string (),
267- ?errorTip : string (),
267+ ?errorTip : anyOf ( string (), listOf ( string ()) ),
268268 ])
269269 )
270270 disallowedEnums : listOf (
@@ -296,7 +296,7 @@ parametersSchema:
296296 ?allowExceptInClassWithMethodAttributes : listOf (string ()),
297297 ?disallowInClassWithMethodAttributes : listOf (string ()),
298298 ?errorIdentifier : string (),
299- ?errorTip : string (),
299+ ?errorTip : anyOf ( string (), listOf ( string ()) ),
300300 ])
301301 )
302302 disallowedSuperglobals : listOf (
@@ -328,7 +328,7 @@ parametersSchema:
328328 ?allowExceptInClassWithMethodAttributes : listOf (string ()),
329329 ?disallowInClassWithMethodAttributes : listOf (string ()),
330330 ?errorIdentifier : string (),
331- ?errorTip : string (),
331+ ?errorTip : anyOf ( string (), listOf ( string ()) ),
332332 ])
333333 )
334334 disallowedAttributes : listOf (
@@ -379,7 +379,7 @@ parametersSchema:
379379 ?allowExceptInClassWithMethodAttributes : listOf (string ()),
380380 ?disallowInClassWithMethodAttributes : listOf (string ()),
381381 ?errorIdentifier : string (),
382- ?errorTip : string (),
382+ ?errorTip : anyOf ( string (), listOf ( string ()) ),
383383 ])
384384 )
385385 disallowedControlStructures : listOf (
@@ -412,7 +412,7 @@ parametersSchema:
412412 ?allowExceptInClassWithMethodAttributes : listOf (string ()),
413413 ?disallowInClassWithMethodAttributes : listOf (string ()),
414414 ?errorIdentifier : string (),
415- ?errorTip : string (),
415+ ?errorTip : anyOf ( string (), listOf ( string ()) ),
416416 ])
417417 )
418418
@@ -440,6 +440,7 @@ services:
440440 - Spaze\PHPStan\Rules\Disallowed\RuleErrors\DisallowedNamespaceRuleErrors
441441 - Spaze\PHPStan\Rules\Disallowed\RuleErrors\DisallowedCallsRuleErrors
442442 - Spaze\PHPStan\Rules\Disallowed\RuleErrors\DisallowedVariableRuleErrors
443+ - Spaze\PHPStan\Rules\Disallowed\RuleErrors\ErrorTips
443444 - Spaze\PHPStan\Rules\Disallowed\Type\TypeResolver
444445 - Spaze\PHPStan\Rules\Disallowed\UsageFactory\NamespaceUsageFactory
445446 -
0 commit comments