Skip to content

Commit 45ba91b

Browse files
committed
lint
1 parent 106b589 commit 45ba91b

15 files changed

+1
-15
lines changed

src/Rules/Classes/LocalTypeAliasesCheck.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,6 @@ public function checkInTraitDefinitionContext(ClassReflection $reflection): arra
221221
->build();
222222
}
223223

224-
225224
foreach ($this->missingTypehintCheck->getCallablesWithMissingSignature($resolvedType) as $callableType) {
226225
$errors[] = RuleErrorBuilder::message(sprintf(
227226
'%s %s has type alias %s with no signature specified for %s.',

src/Rules/Classes/MethodTagCheck.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ private function checkMethodTypeInTraitDefinitionContext(ClassReflection $classR
190190
->build();
191191
}
192192

193-
194193
foreach ($this->missingTypehintCheck->getIterableTypesWithMissingValueTypehint($type) as $iterableType) {
195194
$iterableTypeDescription = $iterableType->describe(VerbosityLevel::typeOnly());
196195
$errors[] = RuleErrorBuilder::message(sprintf(

src/Rules/Classes/MixinCheck.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ public function checkInTraitDefinitionContext(ClassReflection $classReflection):
9999
->build();
100100
}
101101

102-
103102
foreach ($this->missingTypehintCheck->getCallablesWithMissingSignature($type) as $callableType) {
104103
$errors[] = RuleErrorBuilder::message(sprintf(
105104
'%s %s has PHPDoc tag @mixin with no signature specified for %s.',

src/Rules/Classes/PropertyTagCheck.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ private function checkPropertyTypeInTraitDefinitionContext(ClassReflection $clas
171171
->build();
172172
}
173173

174-
175174
foreach ($this->missingTypehintCheck->getIterableTypesWithMissingValueTypehint($type) as $iterableType) {
176175
$iterableTypeDescription = $iterableType->describe(VerbosityLevel::typeOnly());
177176
$errors[] = RuleErrorBuilder::message(sprintf(

src/Rules/Constants/MissingClassConstantTypehintRule.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ private function processSingleConstant(ClassReflection $classReflection, string
8383
->build();
8484
}
8585

86-
8786
foreach ($this->missingTypehintCheck->getCallablesWithMissingSignature($constantType) as $callableType) {
8887
$errors[] = RuleErrorBuilder::message(sprintf(
8988
'Constant %s::%s type has no signature specified for %s.',

src/Rules/Functions/MissingFunctionParameterTypehintRule.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ private function checkFunctionParameter(FunctionReflection $functionReflection,
105105
->build();
106106
}
107107

108-
109108
foreach ($this->missingTypehintCheck->getCallablesWithMissingSignature($parameterType) as $callableType) {
110109
$messages[] = RuleErrorBuilder::message(sprintf(
111110
'Function %s() has %s with no signature specified for %s.',

src/Rules/Functions/MissingFunctionReturnTypehintRule.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ public function processNode(Node $node, Scope $scope): array
6767
->build();
6868
}
6969

70-
7170
foreach ($this->missingTypehintCheck->getCallablesWithMissingSignature($returnType) as $callableType) {
7271
$messages[] = RuleErrorBuilder::message(sprintf(
7372
'Function %s() return type has no signature specified for %s.',

src/Rules/Methods/MissingMethodParameterTypehintRule.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ private function checkMethodParameter(MethodReflection $methodReflection, string
108108
->build();
109109
}
110110

111-
112111
foreach ($this->missingTypehintCheck->getCallablesWithMissingSignature($parameterType) as $callableType) {
113112
$messages[] = RuleErrorBuilder::message(sprintf(
114113
'Method %s::%s() has %s with no signature specified for %s.',

src/Rules/Methods/MissingMethodReturnTypehintRule.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
->build();
8080
}
8181

82-
8382
foreach ($this->missingTypehintCheck->getCallablesWithMissingSignature($returnType) as $callableType) {
8483
$messages[] = RuleErrorBuilder::message(sprintf(
8584
'Method %s::%s() return type has no signature specified for %s.',

src/Rules/Methods/MissingMethodSelfOutTypeRule.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ public function processNode(Node $node, Scope $scope): array
7272
->build();
7373
}
7474

75-
7675
foreach ($this->missingTypehintCheck->getCallablesWithMissingSignature($selfOutType) as $callableType) {
7776
$messages[] = RuleErrorBuilder::message(sprintf(
7877
'Method %s::%s() has %s with no signature specified for %s.',

0 commit comments

Comments
 (0)