Skip to content

Commit 37d6e67

Browse files
authored
Improve rector configuration (#2)
1 parent 24602f2 commit 37d6e67

11 files changed

+12
-10
lines changed

rector.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use Rector\Php81\Rector\ClassMethod\NewInInitializerRector;
99
use Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector;
1010
use Rector\Php82\Rector\Param\AddSensitiveParameterAttributeRector;
11+
use Rector\Php83\Rector\ClassMethod\AddOverrideAttributeToOverriddenMethodsRector;
1112

1213
return RectorConfig::configure()
1314
->withPaths([
@@ -25,4 +26,5 @@
2526
NullToStrictStringFuncCallArgRector::class,
2627
ClassPropertyAssignToConstructorPromotionRector::class,
2728
NewInInitializerRector::class,
29+
AddOverrideAttributeToOverriddenMethodsRector::class,
2830
]);

src/Change/PrepareChangelog.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
final readonly class PrepareChangelog implements Change
1515
{
16-
private const FILE = 'CHANGELOG.md';
16+
private const string FILE = 'CHANGELOG.md';
1717

1818
public function decide(Context $context): callable|array|null
1919
{

src/Change/PrepareDocsInternals.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
final readonly class PrepareDocsInternals implements Change
1818
{
19-
private const FILE = 'docs/internals.md';
19+
private const string FILE = 'docs/internals.md';
2020

2121
public function decide(Context $context): callable|array|null
2222
{

src/Change/PrepareGitHubWorkflowBuild.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
final readonly class PrepareGitHubWorkflowBuild implements Change
1717
{
18-
private const FILE = '.github/workflows/build.yml';
18+
private const string FILE = '.github/workflows/build.yml';
1919

2020
public function decide(Context $context): callable|array|null
2121
{

src/Change/PrepareGitHubWorkflowCodeStyle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
final readonly class PrepareGitHubWorkflowCodeStyle implements Change
1717
{
18-
private const FILE = '.github/workflows/code-style.yml';
18+
private const string FILE = '.github/workflows/code-style.yml';
1919

2020
public function decide(Context $context): callable|array|null
2121
{

src/Change/PrepareGitHubWorkflowComposerDependencyAnalyser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
final readonly class PrepareGitHubWorkflowComposerDependencyAnalyser implements Change
1717
{
18-
private const FILE = '.github/workflows/composer-dependency-analyser.yml';
18+
private const string FILE = '.github/workflows/composer-dependency-analyser.yml';
1919

2020
public function decide(Context $context): callable|array|null
2121
{

src/Change/PrepareGitHubWorkflowMutation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
final readonly class PrepareGitHubWorkflowMutation implements Change
1717
{
18-
private const FILE = '.github/workflows/mutation.yml';
18+
private const string FILE = '.github/workflows/mutation.yml';
1919

2020
public function decide(Context $context): callable|array|null
2121
{

src/Change/PrepareGitHubWorkflowPhpstan.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
final readonly class PrepareGitHubWorkflowPhpstan implements Change
1717
{
18-
private const FILE = '.github/workflows/phpstan.yml';
18+
private const string FILE = '.github/workflows/phpstan.yml';
1919

2020
public function decide(Context $context): callable|array|null
2121
{

src/Change/PrepareGitHubWorkflowPsalm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
final readonly class PrepareGitHubWorkflowPsalm implements Change
1717
{
18-
private const FILE = '.github/workflows/psalm.yml';
18+
private const string FILE = '.github/workflows/psalm.yml';
1919

2020
public function decide(Context $context): callable|array|null
2121
{

src/Change/PrepareGitignore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
final readonly class PrepareGitignore implements Change
1616
{
17-
private const FILE = '.gitignore';
17+
private const string FILE = '.gitignore';
1818

1919
public function decide(Context $context): callable|array|null
2020
{

0 commit comments

Comments
 (0)