File tree Expand file tree Collapse file tree
rules/CodingStyle/Rector/FunctionLike Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments