Skip to content

Commit 018ab9e

Browse files
committed
[ci-review] Rector Rectify
1 parent fea5ed6 commit 018ab9e

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

rules/TypeDeclaration/Rector/ClassMethod/KnownMagicClassMethodTypeRector.php

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

113-
if ($this->isName($classMethod, MethodName::__SET)) {
114-
if ($this->phpVersionProvider->isAtLeastPhpVersion(PhpVersionFeature::MIXED_TYPE)) {
115-
$secondParam = $classMethod->getParams()[1];
116-
if (! $secondParam->type instanceof Node) {
117-
$secondParam->type = new Identifier('mixed');
118-
$hasChanged = true;
119-
}
113+
if ($this->isName($classMethod, MethodName::__SET) && $this->phpVersionProvider->isAtLeastPhpVersion(PhpVersionFeature::MIXED_TYPE)) {
114+
$secondParam = $classMethod->getParams()[1];
115+
if (! $secondParam->type instanceof Node) {
116+
$secondParam->type = new Identifier('mixed');
117+
$hasChanged = true;
120118
}
121119
}
122120
}

0 commit comments

Comments
 (0)