File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
rules/CodingStyle/Rector/FunctionLike Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 2020use PHPStan \Analyser \Scope ;
2121use Rector \PHPStan \ScopeFetcher ;
2222use Rector \Rector \AbstractRector ;
23+ use Rector \ValueObject \PhpVersionFeature ;
24+ use Rector \VersionBonding \Contract \MinPhpVersionInterface ;
2325use Symplify \RuleDocGenerator \ValueObject \CodeSample \CodeSample ;
2426use Symplify \RuleDocGenerator \ValueObject \RuleDefinition ;
2527
2628/**
2729 * @see \Rector\Tests\CodingStyle\Rector\FunctionLike\FunctionLikeToFirstClassCallableRector\FunctionLikeToFirstClassCallableRectorTest
2830 */
29- final class FunctionLikeToFirstClassCallableRector extends AbstractRector
31+ final class FunctionLikeToFirstClassCallableRector extends AbstractRector implements MinPhpVersionInterface
3032{
3133 public function getRuleDefinition (): RuleDefinition
3234 {
@@ -238,4 +240,9 @@ private function isChainedCall(FuncCall|MethodCall|StaticCall $callLike): bool
238240
239241 return $ callLike ->var instanceof CallLike;
240242 }
243+
244+ public function provideMinPhpVersion (): int
245+ {
246+ return PhpVersionFeature::FIRST_CLASS_CALLABLE_SYNTAX ;
247+ }
241248}
You can’t perform that action at this time.
0 commit comments