Skip to content

Commit 15e2682

Browse files
committed
run rector
1 parent 082e8fe commit 15e2682

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

rules/AnnotationsToAttributes/Rector/ClassMethod/DataProviderAnnotationToAttributeRector.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ public function refactor(Node $node): ?Node
147147
if ($originalAttributeValueToken === false) {
148148
continue;
149149
}
150+
150151
$node->attrGroups[] = $this->createAttributeGroup($originalAttributeValueToken);
151152

152153
// cleanup

rules/CodeQuality/Rector/ClassMethod/CreateMockToAnonymousClassRector.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Rector\PHPUnit\CodeQuality\Rector\ClassMethod;
66

7+
use PhpParser\Node\Name;
78
use PhpParser\Modifiers;
89
use PhpParser\Node;
910
use PhpParser\Node\Arg;
@@ -200,7 +201,7 @@ private function createAnonymousClass(Arg $firstArg): Class_
200201
throw new NotImplementedYetException();
201202
}
202203

203-
if (! $className instanceof Node\Name) {
204+
if (! $className instanceof Name) {
204205
throw new NotImplementedYetException();
205206
}
206207

rules/CodeQuality/Rector/Class_/TypeWillReturnCallableArrowFunctionRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ public function refactor(Node $node): ?Class_
236236

237237
if (! $innerClosure->returnType instanceof Node) {
238238
$returnType = $parameterTypesAndReturnType->getReturnType();
239-
if ($returnType === null) {
239+
if (!$returnType instanceof Type) {
240240
return null;
241241
}
242242

rules/PHPUnit100/Rector/Class_/RemoveNamedArgsInDataProviderRector.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ public function refactor(Node $node): ?Node
105105
if (! $expr->value instanceof Array_) {
106106
return null;
107107
}
108+
108109
$arrayChanged = $this->handleArray($expr->value);
109110
} elseif ($expr instanceof Array_) {
110111
$arrayChanged = $this->handleArray($expr);

0 commit comments

Comments
 (0)