Skip to content

Commit 4035795

Browse files
committed
Updated Rector to commit 0071144a396d7d42472f076b85ed089a555c34fb
rectorphp/rector-src@0071144 [StrictStringParamConcatRector] Skip PHP version 5.6 or earlier (#7927)
1 parent 30ae5fa commit 4035795

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

rules/TypeDeclaration/Rector/ClassMethod/StrictStringParamConcatRector.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,15 @@
2222
use PHPStan\Type\TypeCombinator;
2323
use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory;
2424
use Rector\Rector\AbstractRector;
25+
use Rector\ValueObject\PhpVersionFeature;
2526
use Rector\VendorLocker\ParentClassMethodTypeOverrideGuard;
27+
use Rector\VersionBonding\Contract\MinPhpVersionInterface;
2628
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
2729
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
2830
/**
2931
* @see \Rector\Tests\TypeDeclaration\Rector\ClassMethod\StrictStringParamConcatRector\StrictStringParamConcatRectorTest
3032
*/
31-
final class StrictStringParamConcatRector extends AbstractRector
33+
final class StrictStringParamConcatRector extends AbstractRector implements MinPhpVersionInterface
3234
{
3335
/**
3436
* @readonly
@@ -72,6 +74,10 @@ public function getNodeTypes(): array
7274
{
7375
return [ClassMethod::class, Function_::class, Closure::class];
7476
}
77+
public function provideMinPhpVersion(): int
78+
{
79+
return PhpVersionFeature::SCALAR_TYPES;
80+
}
7581
/**
7682
* @param ClassMethod|Function_|Closure $node
7783
*/

src/Application/VersionResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ final class VersionResolver
1919
* @api
2020
* @var string
2121
*/
22-
public const PACKAGE_VERSION = '572e3188de77263eb8755690aed4e6e81d925957';
22+
public const PACKAGE_VERSION = '0071144a396d7d42472f076b85ed089a555c34fb';
2323
/**
2424
* @api
2525
* @var string
2626
*/
27-
public const RELEASE_DATE = '2026-03-08 00:49:37';
27+
public const RELEASE_DATE = '2026-03-12 18:24:13';
2828
/**
2929
* @var int
3030
*/

0 commit comments

Comments
 (0)