Skip to content

Commit 5db5afc

Browse files
committed
Updated Rector to commit 4273c1667357ac77e4d6ebf63846cff2b17c4879
rectorphp/rector-src@4273c16 Add some symfony/polyfill support (#7965)
1 parent 000b705 commit 5db5afc

5 files changed

Lines changed: 33 additions & 5 deletions

File tree

rules/Php83/Rector/ClassMethod/AddOverrideAttributeToOverriddenMethodsRector.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,17 @@
2828
use Rector\Rector\AbstractRector;
2929
use Rector\ValueObject\MethodName;
3030
use Rector\ValueObject\PhpVersionFeature;
31+
use Rector\ValueObject\PolyfillPackage;
3132
use Rector\VersionBonding\Contract\MinPhpVersionInterface;
33+
use Rector\VersionBonding\Contract\RelatedPolyfillInterface;
3234
use Symplify\RuleDocGenerator\ValueObject\CodeSample\ConfiguredCodeSample;
3335
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
3436
/**
3537
* @see https://wiki.php.net/rfc/marking_overriden_methods
3638
*
3739
* @see \Rector\Tests\Php83\Rector\ClassMethod\AddOverrideAttributeToOverriddenMethodsRector\AddOverrideAttributeToOverriddenMethodsRectorTest
3840
*/
39-
final class AddOverrideAttributeToOverriddenMethodsRector extends AbstractRector implements MinPhpVersionInterface, ConfigurableRectorInterface
41+
final class AddOverrideAttributeToOverriddenMethodsRector extends AbstractRector implements MinPhpVersionInterface, RelatedPolyfillInterface, ConfigurableRectorInterface
4042
{
4143
/**
4244
* @readonly
@@ -213,6 +215,10 @@ public function provideMinPhpVersion(): int
213215
{
214216
return PhpVersionFeature::OVERRIDE_ATTRIBUTE;
215217
}
218+
public function providePolyfillPackage(): string
219+
{
220+
return PolyfillPackage::PHP_83;
221+
}
216222
/**
217223
* @param ClassReflection[] $parentClassReflections
218224
*/

rules/Php84/Rector/Class_/DeprecatedAnnotationToDeprecatedAttributeRector.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@
1010
use Rector\PhpAttribute\DeprecatedAnnotationToDeprecatedAttributeConverter;
1111
use Rector\Rector\AbstractRector;
1212
use Rector\ValueObject\PhpVersionFeature;
13+
use Rector\ValueObject\PolyfillPackage;
1314
use Rector\VersionBonding\Contract\MinPhpVersionInterface;
15+
use Rector\VersionBonding\Contract\RelatedPolyfillInterface;
1416
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
1517
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
1618
/**
1719
* @see \Rector\Tests\Php84\Rector\Class_\DeprecatedAnnotationToDeprecatedAttributeRector\DeprecatedAnnotationToDeprecatedAttributeRectorTest
1820
*/
19-
final class DeprecatedAnnotationToDeprecatedAttributeRector extends AbstractRector implements MinPhpVersionInterface
21+
final class DeprecatedAnnotationToDeprecatedAttributeRector extends AbstractRector implements MinPhpVersionInterface, RelatedPolyfillInterface
2022
{
2123
/**
2224
* @readonly
@@ -59,4 +61,8 @@ public function provideMinPhpVersion(): int
5961
{
6062
return PhpVersionFeature::DEPRECATED_ATTRIBUTE;
6163
}
64+
public function providePolyfillPackage(): string
65+
{
66+
return PolyfillPackage::PHP_84;
67+
}
6268
}

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 = '2.4.1';
22+
public const PACKAGE_VERSION = '4273c1667357ac77e4d6ebf63846cff2b17c4879';
2323
/**
2424
* @api
2525
* @var string
2626
*/
27-
public const RELEASE_DATE = '2026-04-07 23:48:45';
27+
public const RELEASE_DATE = '2026-04-09 11:35:23';
2828
/**
2929
* @var int
3030
*/

src/ValueObject/PolyfillPackage.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,26 @@
88
*/
99
final class PolyfillPackage
1010
{
11+
/**
12+
* @var string
13+
*/
14+
public const PHP_85 = 'symfony/polyfill-php85';
15+
/**
16+
* @var string
17+
*/
18+
public const PHP_84 = 'symfony/polyfill-php84';
1119
/**
1220
* @var string
1321
*/
1422
public const PHP_83 = 'symfony/polyfill-php83';
23+
/**
24+
* @var string
25+
*/
26+
public const PHP_82 = 'symfony/polyfill-php82';
27+
/**
28+
* @var string
29+
*/
30+
public const PHP_81 = 'symfony/polyfill-php81';
1531
/**
1632
* @var string
1733
*/

vendor/scoper-autoload.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// Restore the backup and ensure the excluded files are properly marked as loaded
1515
$GLOBALS['__composer_autoload_files'] = \array_merge(
1616
$existingComposerAutoloadFiles,
17-
\array_fill_keys(['320cde22f66dd4f5d3fd621d3e88b98f', '9eaa6b0f3f04e58e17ae5ecb754ea313', '8825ede83f2f289127722d4e842cf7e8', 'acbe0d033c55cd0a032b415e08d14f4c', 'e69f7f6ee287b969198c3c9d6777bd38', '36dfd6ed9dd74e8062aa61f09caf8554', '0e6d7bf4a5811bfa5cf40c5ccd6fae6a', '5928a00fa978807cf85d90ec3f4b0147', '9d2b9fc6db0f153a0a149fefb182415e', '7bfbed8d216c917b4d3e46b319a08b5c', '606a39d89246991a373564698c2d8383'], true)
17+
\array_fill_keys(['9eaa6b0f3f04e58e17ae5ecb754ea313', '320cde22f66dd4f5d3fd621d3e88b98f', 'acbe0d033c55cd0a032b415e08d14f4c', '8825ede83f2f289127722d4e842cf7e8', '36dfd6ed9dd74e8062aa61f09caf8554', 'e69f7f6ee287b969198c3c9d6777bd38', '5928a00fa978807cf85d90ec3f4b0147', '0e6d7bf4a5811bfa5cf40c5ccd6fae6a', '7bfbed8d216c917b4d3e46b319a08b5c', '9d2b9fc6db0f153a0a149fefb182415e', '606a39d89246991a373564698c2d8383'], true)
1818
);
1919

2020
return $loader;

0 commit comments

Comments
 (0)