Skip to content

Commit 1f73464

Browse files
committed
const
1 parent 30a38c6 commit 1f73464

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

rules/CodingStyle/Rector/FunctionLike/FunctionLikeToFirstClassCallableRector.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ final class FunctionLikeToFirstClassCallableRector extends AbstractRector implem
4040
/**
4141
* @var string
4242
*/
43-
private const SKIP_BASED_ON_CALLBACK_SIGNATURE = 'skip_based_on_callback_signature';
43+
private const HAS_CALLBACK_SIGNATURE_MULTI_PARAMS = 'has_callback_signature_multi_params';
4444

4545
public function __construct(
4646
private readonly AstResolver $astResolver,
@@ -116,7 +116,7 @@ public function refactor(Node $node): null|CallLike
116116
->yes()
117117
&& count($parameterReflection->getType()->getParameters()) > 1
118118
) {
119-
$args[$key]->value->setAttribute(self::SKIP_BASED_ON_CALLBACK_SIGNATURE, true);
119+
$args[$key]->value->setAttribute(self::HAS_CALLBACK_SIGNATURE_MULTI_PARAMS, true);
120120
return null;
121121
}
122122
}
@@ -181,7 +181,7 @@ private function shouldSkip(
181181
return true;
182182
}
183183

184-
if ($node->getAttribute(self::SKIP_BASED_ON_CALLBACK_SIGNATURE) === true) {
184+
if ($node->getAttribute(self::HAS_CALLBACK_SIGNATURE_MULTI_PARAMS) === true) {
185185
return true;
186186
}
187187

0 commit comments

Comments
 (0)