Skip to content

Commit 9b8a5d0

Browse files
committed
[ci-review] Rector Rectify
1 parent 506c87d commit 9b8a5d0

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

rules/TypeDeclaration/Rector/ClassMethod/KnownMagicClassMethodTypeRector.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,9 @@ public function refactor(Node $node): ?Node
110110
}
111111
}
112112

113-
if ($this->isName($classMethod, MethodName::__GET) && $this->phpVersionProvider->isAtLeastPhpVersion(
114-
PhpVersionFeature::MIXED_TYPE
115-
)) {
116-
if (! $classMethod->returnType instanceof \PhpParser\Node) {
117-
$classMethod->returnType = new Identifier('mixed');
118-
$hasChanged = true;
119-
}
113+
if ($this->isName($classMethod, MethodName::__GET) && $this->phpVersionProvider->isAtLeastPhpVersion(PhpVersionFeature::MIXED_TYPE) && ! $classMethod->returnType instanceof Node) {
114+
$classMethod->returnType = new Identifier('mixed');
115+
$hasChanged = true;
120116
}
121117

122118
if ($this->isName($classMethod, MethodName::__SET) && $this->phpVersionProvider->isAtLeastPhpVersion(

0 commit comments

Comments
 (0)