Skip to content

Commit d603c7b

Browse files
committed
Remove tip about deprecated config option
1 parent 9544f8a commit d603c7b

22 files changed

+0
-53
lines changed

src/Rules/Classes/MixinRule.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ public function processNode(Node $node, Scope $scope): array
7979
$innerName,
8080
implode(', ', $genericTypeNames),
8181
))
82-
->tip(MissingTypehintCheck::TURN_OFF_NON_GENERIC_CHECK_TIP)
8382
->identifier('missingType.generics')
8483
->build();
8584
}

src/Rules/Constants/MissingClassConstantTypehintRule.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ private function processSingleConstant(ClassReflection $classReflection, string
7878
$name,
7979
implode(', ', $genericTypeNames),
8080
))
81-
->tip(MissingTypehintCheck::TURN_OFF_NON_GENERIC_CHECK_TIP)
8281
->identifier('missingType.generics')
8382
->build();
8483
}

src/Rules/Functions/MissingFunctionParameterTypehintRule.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ private function checkFunctionParameter(FunctionReflection $functionReflection,
103103
$name,
104104
implode(', ', $genericTypeNames),
105105
))
106-
->tip(MissingTypehintCheck::TURN_OFF_NON_GENERIC_CHECK_TIP)
107106
->identifier('missingType.generics')
108107
->build();
109108
}

src/Rules/Functions/MissingFunctionReturnTypehintRule.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ public function processNode(Node $node, Scope $scope): array
6161
$name,
6262
implode(', ', $genericTypeNames),
6363
))
64-
->tip(MissingTypehintCheck::TURN_OFF_NON_GENERIC_CHECK_TIP)
6564
->identifier('missingType.generics')
6665
->build();
6766
}

src/Rules/Generics/GenericAncestorsCheck.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
use PhpParser\Node\Name;
77
use PHPStan\Reflection\ReflectionProvider;
88
use PHPStan\Rules\IdentifierRuleError;
9-
use PHPStan\Rules\MissingTypehintCheck;
109
use PHPStan\Rules\RuleErrorBuilder;
1110
use PHPStan\Type\Generic\GenericObjectType;
1211
use PHPStan\Type\Generic\TemplateTypeVariance;
@@ -151,7 +150,6 @@ public function check(
151150
$unusedName,
152151
implode(', ', array_keys($unusedNameClassReflection->getTemplateTypeMap()->getTypes())),
153152
))
154-
->tip(MissingTypehintCheck::TURN_OFF_NON_GENERIC_CHECK_TIP)
155153
->identifier('missingType.generics')
156154
->build();
157155
}

src/Rules/Methods/MissingMethodParameterTypehintRule.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ private function checkMethodParameter(MethodReflection $methodReflection, string
106106
$name,
107107
implode(', ', $genericTypeNames),
108108
))
109-
->tip(MissingTypehintCheck::TURN_OFF_NON_GENERIC_CHECK_TIP)
110109
->identifier('missingType.generics')
111110
->build();
112111
}

src/Rules/Methods/MissingMethodReturnTypehintRule.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ public function processNode(Node $node, Scope $scope): array
7373
$name,
7474
implode(', ', $genericTypeNames),
7575
))
76-
->tip(MissingTypehintCheck::TURN_OFF_NON_GENERIC_CHECK_TIP)
7776
->identifier('missingType.generics')
7877
->build();
7978
}

src/Rules/MissingTypehintCheck.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ class MissingTypehintCheck
3232

3333
public const MISSING_ITERABLE_VALUE_TYPE_TIP = 'See: https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-iterable-type';
3434

35-
public const TURN_OFF_NON_GENERIC_CHECK_TIP = 'You can turn this off by setting <fg=cyan>checkGenericClassInNonGenericObjectType: false</> in your <fg=cyan>%configurationFile%</>.';
36-
3735
private const ITERABLE_GENERIC_CLASS_NAMES = [
3836
Traversable::class,
3937
Iterator::class,

src/Rules/PhpDoc/InvalidPhpDocVarTagTypeRule.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ public function processNode(Node $node, Scope $scope): array
118118
$innerName,
119119
implode(', ', $genericTypeNames),
120120
))
121-
->tip(MissingTypehintCheck::TURN_OFF_NON_GENERIC_CHECK_TIP)
122121
->identifier('missingType.generics')
123122
->build();
124123
}

src/Rules/Properties/MissingPropertyTypehintRule.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ public function processNode(Node $node, Scope $scope): array
7070
$name,
7171
implode(', ', $genericTypeNames),
7272
))
73-
->tip(MissingTypehintCheck::TURN_OFF_NON_GENERIC_CHECK_TIP)
7473
->identifier('missingType.generics')
7574
->build();
7675
}

tests/PHPStan/Rules/Classes/MixinRuleTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ public function testRule(): void
6161
[
6262
'PHPDoc tag @mixin contains generic class ReflectionClass but does not specify its types: T',
6363
50,
64-
'You can turn this off by setting <fg=cyan>checkGenericClassInNonGenericObjectType: false</> in your <fg=cyan>%configurationFile%</>.',
6564
],
6665
[
6766
'PHPDoc tag @mixin contains unknown class MixinRule\UnknownestClass.',

tests/PHPStan/Rules/Constants/MissingClassConstantTypehintRuleTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ public function testRule(): void
2929
[
3030
'Constant MissingClassConstantTypehint\Foo::BAZ with generic class MissingClassConstantTypehint\Bar does not specify its types: T',
3131
17,
32-
'You can turn this off by setting <fg=cyan>checkGenericClassInNonGenericObjectType: false</> in your <fg=cyan>%configurationFile%</>.',
3332
],
3433
[
3534
'Constant MissingClassConstantTypehint\Foo::LOREM type has no signature specified for callable.',
@@ -61,7 +60,6 @@ public function testRuleShouldNotApplyToNativeTypes(): void
6160
[
6261
'Constant ClassConstantNativeTypeForMissingTypehintRule\Foo::D with generic class ClassConstantNativeTypeForMissingTypehintRule\Bar does not specify its types: T',
6362
24,
64-
'You can turn this off by setting <fg=cyan>checkGenericClassInNonGenericObjectType: false</> in your <fg=cyan>%configurationFile%</>.',
6563
],
6664
]);
6765
}

tests/PHPStan/Rules/Functions/MissingFunctionParameterTypehintRuleTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,10 @@ public function testRule(): void
5151
[
5252
'Function MissingFunctionParameterTypehint\acceptsGenericInterface() has parameter $i with generic interface MissingFunctionParameterTypehint\GenericInterface but does not specify its types: T, U',
5353
111,
54-
'You can turn this off by setting <fg=cyan>checkGenericClassInNonGenericObjectType: false</> in your <fg=cyan>%configurationFile%</>.',
5554
],
5655
[
5756
'Function MissingFunctionParameterTypehint\acceptsGenericClass() has parameter $c with generic class MissingFunctionParameterTypehint\GenericClass but does not specify its types: A, B',
5857
130,
59-
'You can turn this off by setting <fg=cyan>checkGenericClassInNonGenericObjectType: false</> in your <fg=cyan>%configurationFile%</>.',
6058
],
6159
[
6260
'Function MissingFunctionParameterTypehint\missingIterableTypehint() has parameter $iterable with no value type specified in iterable type iterable.',
@@ -90,12 +88,10 @@ public function testRule(): void
9088
[
9189
'Function MissingParamOutType\generics() has @param-out PHPDoc tag for parameter $a with generic class ReflectionClass but does not specify its types: T',
9290
181,
93-
'You can turn this off by setting <fg=cyan>checkGenericClassInNonGenericObjectType: false</> in your <fg=cyan>%configurationFile%</>.',
9491
],
9592
[
9693
'Function MissingParamClosureThisType\generics() has @param-closure-this PHPDoc tag for parameter $cb with generic class ReflectionClass but does not specify its types: T',
9794
191,
98-
'You can turn this off by setting <fg=cyan>checkGenericClassInNonGenericObjectType: false</> in your <fg=cyan>%configurationFile%</>.',
9995
],
10096
]);
10197
}

tests/PHPStan/Rules/Functions/MissingFunctionReturnTypehintRuleTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,14 @@ public function testRule(): void
3737
[
3838
'Function MissingFunctionReturnTypehint\returnsGenericInterface() return type with generic interface MissingFunctionReturnTypehint\GenericInterface does not specify its types: T, U',
3939
70,
40-
'You can turn this off by setting <fg=cyan>checkGenericClassInNonGenericObjectType: false</> in your <fg=cyan>%configurationFile%</>.',
4140
],
4241
[
4342
'Function MissingFunctionReturnTypehint\returnsGenericClass() return type with generic class MissingFunctionReturnTypehint\GenericClass does not specify its types: A, B',
4443
89,
45-
'You can turn this off by setting <fg=cyan>checkGenericClassInNonGenericObjectType: false</> in your <fg=cyan>%configurationFile%</>.',
4644
],
4745
[
4846
'Function MissingFunctionReturnTypehint\genericGenericMissingTemplateArgs() return type with generic class MissingFunctionReturnTypehint\GenericClass does not specify its types: A, B',
4947
105,
50-
'You can turn this off by setting <fg=cyan>checkGenericClassInNonGenericObjectType: false</> in your <fg=cyan>%configurationFile%</>.',
5148
],
5249
[
5350
'Function MissingFunctionReturnTypehint\closureWithNoPrototype() return type has no signature specified for Closure.',

tests/PHPStan/Rules/Generics/ClassAncestorsRuleTest.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ public function testRuleExtends(): void
4343
[
4444
'Class ClassAncestorsExtends\FooWrongClassExtended extends generic class ClassAncestorsExtends\FooGeneric but does not specify its types: T, U',
4545
43,
46-
'You can turn this off by setting <fg=cyan>checkGenericClassInNonGenericObjectType: false</> in your <fg=cyan>%configurationFile%</>.',
4746
],
4847
[
4948
'Class ClassAncestorsExtends\FooWrongTypeInExtendsTag @extends tag contains incompatible type class-string<ClassAncestorsExtends\T>.',
@@ -52,7 +51,6 @@ public function testRuleExtends(): void
5251
[
5352
'Class ClassAncestorsExtends\FooWrongTypeInExtendsTag extends generic class ClassAncestorsExtends\FooGeneric but does not specify its types: T, U',
5453
51,
55-
'You can turn this off by setting <fg=cyan>checkGenericClassInNonGenericObjectType: false</> in your <fg=cyan>%configurationFile%</>.',
5654
],
5755
[
5856
'Generic type ClassAncestorsExtends\FooGeneric<int> in PHPDoc tag @extends does not specify all template types of class ClassAncestorsExtends\FooGeneric: T, U',
@@ -89,7 +87,6 @@ public function testRuleExtends(): void
8987
[
9088
'Class ClassAncestorsExtends\FooExtendsGenericClass extends generic class ClassAncestorsExtends\FooGeneric but does not specify its types: T, U',
9189
174,
92-
'You can turn this off by setting <fg=cyan>checkGenericClassInNonGenericObjectType: false</> in your <fg=cyan>%configurationFile%</>.',
9390
],
9491
[
9592
'Template type T is declared as covariant, but occurs in invariant position in extended type ClassAncestorsExtends\FooGeneric8<T, T> of class ClassAncestorsExtends\FooGeneric9.',
@@ -106,7 +103,6 @@ public function testRuleExtends(): void
106103
[
107104
'Class ClassAncestorsExtends\FilterIteratorChild extends generic class FilterIterator but does not specify its types: TKey, TValue, TIterator',
108105
215,
109-
'You can turn this off by setting <fg=cyan>checkGenericClassInNonGenericObjectType: false</> in your <fg=cyan>%configurationFile%</>.',
110106
],
111107
[
112108
'Class ClassAncestorsExtends\FooObjectStorage @extends tag contains incompatible type ClassAncestorsExtends\FooObjectStorage.',
@@ -115,7 +111,6 @@ public function testRuleExtends(): void
115111
[
116112
'Class ClassAncestorsExtends\FooObjectStorage extends generic class SplObjectStorage but does not specify its types: TObject, TData',
117113
226,
118-
'You can turn this off by setting <fg=cyan>checkGenericClassInNonGenericObjectType: false</> in your <fg=cyan>%configurationFile%</>.',
119114
],
120115
[
121116
'Class ClassAncestorsExtends\FooCollection @extends tag contains incompatible type ClassAncestorsExtends\FooCollection&iterable<int>.',
@@ -124,7 +119,6 @@ public function testRuleExtends(): void
124119
[
125120
'Class ClassAncestorsExtends\FooCollection extends generic class ClassAncestorsExtends\AbstractFooCollection but does not specify its types: T',
126121
239,
127-
'You can turn this off by setting <fg=cyan>checkGenericClassInNonGenericObjectType: false</> in your <fg=cyan>%configurationFile%</>.',
128122
],
129123
[
130124
'Call-site variance annotation of covariant Throwable in generic type ClassAncestorsExtends\FooGeneric<covariant Throwable, InvalidArgumentException> in PHPDoc tag @extends is not allowed.',
@@ -151,12 +145,10 @@ public function testRuleImplements(): void
151145
[
152146
'Class ClassAncestorsImplements\FooWrongClassImplemented implements generic interface ClassAncestorsImplements\FooGeneric but does not specify its types: T, U',
153147
52,
154-
'You can turn this off by setting <fg=cyan>checkGenericClassInNonGenericObjectType: false</> in your <fg=cyan>%configurationFile%</>.',
155148
],
156149
[
157150
'Class ClassAncestorsImplements\FooWrongClassImplemented implements generic interface ClassAncestorsImplements\FooGeneric3 but does not specify its types: T, W',
158151
52,
159-
'You can turn this off by setting <fg=cyan>checkGenericClassInNonGenericObjectType: false</> in your <fg=cyan>%configurationFile%</>.',
160152
],
161153
[
162154
'Class ClassAncestorsImplements\FooWrongTypeInImplementsTag @implements tag contains incompatible type class-string<ClassAncestorsImplements\T>.',
@@ -165,7 +157,6 @@ public function testRuleImplements(): void
165157
[
166158
'Class ClassAncestorsImplements\FooWrongTypeInImplementsTag implements generic interface ClassAncestorsImplements\FooGeneric but does not specify its types: T, U',
167159
60,
168-
'You can turn this off by setting <fg=cyan>checkGenericClassInNonGenericObjectType: false</> in your <fg=cyan>%configurationFile%</>.',
169160
],
170161
[
171162
'Generic type ClassAncestorsImplements\FooGeneric<int> in PHPDoc tag @implements does not specify all template types of interface ClassAncestorsImplements\FooGeneric: T, U',
@@ -210,7 +201,6 @@ public function testRuleImplements(): void
210201
[
211202
'Class ClassAncestorsImplements\FooImplementsGenericInterface implements generic interface ClassAncestorsImplements\FooGeneric but does not specify its types: T, U',
212203
198,
213-
'You can turn this off by setting <fg=cyan>checkGenericClassInNonGenericObjectType: false</> in your <fg=cyan>%configurationFile%</>.',
214204
],
215205
[
216206
'Template type T is declared as covariant, but occurs in invariant position in implemented type ClassAncestorsImplements\FooGeneric9<T, T> of class ClassAncestorsImplements\FooGeneric10.',
@@ -223,7 +213,6 @@ public function testRuleImplements(): void
223213
[
224214
'Class ClassAncestorsImplements\FooIterator implements generic interface Iterator but does not specify its types: TKey, TValue',
225215
222,
226-
'You can turn this off by setting <fg=cyan>checkGenericClassInNonGenericObjectType: false</> in your <fg=cyan>%configurationFile%</>.',
227216
],
228217
[
229218
'Class ClassAncestorsImplements\FooCollection @implements tag contains incompatible type ClassAncestorsImplements\FooCollection&iterable<int>.',
@@ -232,7 +221,6 @@ public function testRuleImplements(): void
232221
[
233222
'Class ClassAncestorsImplements\FooCollection implements generic interface ClassAncestorsImplements\AbstractFooCollection but does not specify its types: T',
234223
235,
235-
'You can turn this off by setting <fg=cyan>checkGenericClassInNonGenericObjectType: false</> in your <fg=cyan>%configurationFile%</>.',
236224
],
237225
[
238226
'Call-site variance annotation of covariant Throwable in generic type ClassAncestorsImplements\FooGeneric<covariant Throwable, InvalidArgumentException> in PHPDoc tag @implements is not allowed.',

tests/PHPStan/Rules/Generics/EnumAncestorsRuleTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ public function testRule(): void
4444
[
4545
'Enum EnumGenericAncestors\Foo4 implements generic interface EnumGenericAncestors\Generic but does not specify its types: T, U',
4646
40,
47-
'You can turn this off by setting <fg=cyan>checkGenericClassInNonGenericObjectType: false</> in your <fg=cyan>%configurationFile%</>.',
4847
],
4948
[
5049
'Generic type EnumGenericAncestors\Generic<stdClass> in PHPDoc tag @implements does not specify all template types of interface EnumGenericAncestors\Generic: T, U',

tests/PHPStan/Rules/Generics/InterfaceAncestorsRuleTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,10 @@ public function testRuleExtends(): void
133133
[
134134
'Interface InterfaceAncestorsExtends\FooWrongClassImplemented extends generic interface InterfaceAncestorsExtends\FooGeneric but does not specify its types: T, U',
135135
52,
136-
'You can turn this off by setting <fg=cyan>checkGenericClassInNonGenericObjectType: false</> in your <fg=cyan>%configurationFile%</>.',
137136
],
138137
[
139138
'Interface InterfaceAncestorsExtends\FooWrongClassImplemented extends generic interface InterfaceAncestorsExtends\FooGeneric3 but does not specify its types: T, W',
140139
52,
141-
'You can turn this off by setting <fg=cyan>checkGenericClassInNonGenericObjectType: false</> in your <fg=cyan>%configurationFile%</>.',
142140
],
143141
[
144142
'Interface InterfaceAncestorsExtends\FooWrongTypeInImplementsTag @extends tag contains incompatible type class-string<InterfaceAncestorsExtends\T>.',
@@ -147,7 +145,6 @@ public function testRuleExtends(): void
147145
[
148146
'Interface InterfaceAncestorsExtends\FooWrongTypeInImplementsTag extends generic interface InterfaceAncestorsExtends\FooGeneric but does not specify its types: T, U',
149147
60,
150-
'You can turn this off by setting <fg=cyan>checkGenericClassInNonGenericObjectType: false</> in your <fg=cyan>%configurationFile%</>.',
151148
],
152149
[
153150
'Generic type InterfaceAncestorsExtends\FooGeneric<int> in PHPDoc tag @extends does not specify all template types of interface InterfaceAncestorsExtends\FooGeneric: T, U',
@@ -192,7 +189,6 @@ public function testRuleExtends(): void
192189
[
193190
'Interface InterfaceAncestorsExtends\ExtendsGenericInterface extends generic interface InterfaceAncestorsExtends\FooGeneric but does not specify its types: T, U',
194191
197,
195-
'You can turn this off by setting <fg=cyan>checkGenericClassInNonGenericObjectType: false</> in your <fg=cyan>%configurationFile%</>.',
196192
],
197193
[
198194
'Template type T is declared as covariant, but occurs in invariant position in extended type InterfaceAncestorsExtends\FooGeneric9<T, T> of interface InterfaceAncestorsExtends\FooGeneric10.',

tests/PHPStan/Rules/Generics/UsedTraitsRuleTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ public function testRule(): void
4040
[
4141
'Class UsedTraits\Baz uses generic trait UsedTraits\GenericTrait but does not specify its types: T',
4242
38,
43-
'You can turn this off by setting <fg=cyan>checkGenericClassInNonGenericObjectType: false</> in your <fg=cyan>%configurationFile%</>.',
4443
],
4544
[
4645
'Generic type UsedTraits\GenericTrait<stdClass, Exception> in PHPDoc tag @use specifies 2 template types, but trait UsedTraits\GenericTrait supports only 1: T',
@@ -53,7 +52,6 @@ public function testRule(): void
5352
[
5453
'Trait UsedTraits\NestedTrait uses generic trait UsedTraits\GenericTrait but does not specify its types: T',
5554
54,
56-
'You can turn this off by setting <fg=cyan>checkGenericClassInNonGenericObjectType: false</> in your <fg=cyan>%configurationFile%</>.',
5755
],
5856
[
5957
'Call-site variance annotation of covariant Throwable in generic type UsedTraits\GenericTrait<covariant Throwable> in PHPDoc tag @use is not allowed.',

tests/PHPStan/Rules/Methods/MissingMethodParameterTypehintRuleTest.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,22 +48,18 @@ public function testRule(): void
4848
[
4949
'Method MissingMethodParameterTypehint\Bar::acceptsGenericInterface() has parameter $i with generic interface MissingMethodParameterTypehint\GenericInterface but does not specify its types: T, U',
5050
91,
51-
'You can turn this off by setting <fg=cyan>checkGenericClassInNonGenericObjectType: false</> in your <fg=cyan>%configurationFile%</>.',
5251
],
5352
[
5453
'Method MissingMethodParameterTypehint\Bar::acceptsGenericClass() has parameter $c with generic class MissingMethodParameterTypehint\GenericClass but does not specify its types: A, B',
5554
101,
56-
'You can turn this off by setting <fg=cyan>checkGenericClassInNonGenericObjectType: false</> in your <fg=cyan>%configurationFile%</>.',
5755
],
5856
[
5957
'Method MissingMethodParameterTypehint\CollectionIterableAndGeneric::acceptsCollection() has parameter $collection with generic interface DoctrineIntersectionTypeIsSupertypeOf\Collection but does not specify its types: TKey, T',
6058
111,
61-
'You can turn this off by setting <fg=cyan>checkGenericClassInNonGenericObjectType: false</> in your <fg=cyan>%configurationFile%</>.',
6259
],
6360
[
6461
'Method MissingMethodParameterTypehint\CollectionIterableAndGeneric::acceptsCollection2() has parameter $collection with generic interface DoctrineIntersectionTypeIsSupertypeOf\Collection but does not specify its types: TKey, T',
6562
119,
66-
'You can turn this off by setting <fg=cyan>checkGenericClassInNonGenericObjectType: false</> in your <fg=cyan>%configurationFile%</>.',
6763
],
6864
[
6965
'Method MissingMethodParameterTypehint\CallableSignature::doFoo() has parameter $cb with no signature specified for callable.',
@@ -77,12 +73,10 @@ public function testRule(): void
7773
[
7874
'Method MissingMethodParameterTypehint\MissingParamOutType::generics() has @param-out PHPDoc tag for parameter $a with generic class ReflectionClass but does not specify its types: T',
7975
215,
80-
'You can turn this off by setting <fg=cyan>checkGenericClassInNonGenericObjectType: false</> in your <fg=cyan>%configurationFile%</>.',
8176
],
8277
[
8378
'Method MissingMethodParameterTypehint\MissingParamClosureThisType::generics() has @param-closure-this PHPDoc tag for parameter $cb with generic class ReflectionClass but does not specify its types: T',
8479
226,
85-
'You can turn this off by setting <fg=cyan>checkGenericClassInNonGenericObjectType: false</> in your <fg=cyan>%configurationFile%</>.',
8680
],
8781
[
8882
'Method MissingMethodParameterTypehint\MissingPureClosureSignatureType::doFoo() has parameter $cb with no signature specified for Closure.',
@@ -120,7 +114,6 @@ public function testDeepInspectTypes(): void
120114
[
121115
'Method DeepInspectTypes\Foo::doBar() has parameter $bars with generic class DeepInspectTypes\Bar but does not specify its types: T',
122116
17,
123-
MissingTypehintCheck::TURN_OFF_NON_GENERIC_CHECK_TIP,
124117
],
125118
]);
126119
}

0 commit comments

Comments
 (0)