File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
rules/TypeDeclaration/Rector/ClassMethod Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 2323use PHPStan \Type \TypeCombinator ;
2424use Rector \BetterPhpDocParser \PhpDocInfo \PhpDocInfoFactory ;
2525use Rector \Rector \AbstractRector ;
26+ use Rector \ValueObject \PhpVersionFeature ;
2627use Rector \VendorLocker \ParentClassMethodTypeOverrideGuard ;
28+ use Rector \VersionBonding \Contract \MinPhpVersionInterface ;
2729use Symplify \RuleDocGenerator \ValueObject \CodeSample \CodeSample ;
2830use Symplify \RuleDocGenerator \ValueObject \RuleDefinition ;
2931
3032/**
3133 * @see \Rector\Tests\TypeDeclaration\Rector\ClassMethod\StrictStringParamConcatRector\StrictStringParamConcatRectorTest
3234 */
33- final class StrictStringParamConcatRector extends AbstractRector
35+ final class StrictStringParamConcatRector extends AbstractRector implements MinPhpVersionInterface
3436{
3537 public function __construct (
3638 private readonly ParentClassMethodTypeOverrideGuard $ parentClassMethodTypeOverrideGuard ,
@@ -73,6 +75,11 @@ public function getNodeTypes(): array
7375 return [ClassMethod::class, Function_::class, Closure::class];
7476 }
7577
78+ public function provideMinPhpVersion (): int
79+ {
80+ return PhpVersionFeature::SCALAR_TYPES ;
81+ }
82+
7683 /**
7784 * @param ClassMethod|Function_|Closure $node
7885 */
You can’t perform that action at this time.
0 commit comments