File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
rules/TypeDeclaration/Rector/ClassMethod Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 2424use Rector \BetterPhpDocParser \PhpDocInfo \PhpDocInfoFactory ;
2525use Rector \Rector \AbstractRector ;
2626use Rector \VendorLocker \ParentClassMethodTypeOverrideGuard ;
27+ use Rector \VersionBonding \Contract \MinPhpVersionInterface ;
2728use Symplify \RuleDocGenerator \ValueObject \CodeSample \CodeSample ;
2829use Symplify \RuleDocGenerator \ValueObject \RuleDefinition ;
2930
3031/**
3132 * @see \Rector\Tests\TypeDeclaration\Rector\ClassMethod\StrictStringParamConcatRector\StrictStringParamConcatRectorTest
3233 */
33- final class StrictStringParamConcatRector extends AbstractRector
34+ final class StrictStringParamConcatRector extends AbstractRector implements MinPhpVersionInterface
3435{
3536 public function __construct (
3637 private readonly ParentClassMethodTypeOverrideGuard $ parentClassMethodTypeOverrideGuard ,
@@ -73,6 +74,11 @@ public function getNodeTypes(): array
7374 return [ClassMethod::class, Function_::class, Closure::class];
7475 }
7576
77+ public function provideMinPhpVersion (): int
78+ {
79+ return PhpVersionFeature::SCALAR_TYPES ;
80+ }
81+
7682 /**
7783 * @param ClassMethod|Function_|Closure $node
7884 */
You can’t perform that action at this time.
0 commit comments