Skip to content

Commit 90116a7

Browse files
authored
Merge pull request #12 from samsonasik/enable-inline-public
[Rector] Enable TypedPropertyRector::INLINE_PUBLIC
2 parents b1a8ca0 + 27dc2ae commit 90116a7

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ so be sure to read the documentation and figure out the best fit for you. This w
136136
a "dry run" to check for any changes that Rector would have made and fail if there are matches.
137137

138138
> Note: Rector updates rules all the time so you may want to lock your repo to the latest known working version of Rector to prevent unexpected failures
139-
> E.g. in **Template/.github/workflows/rector.yml** supply the specific minor patch: `composer global require --dev rector/rector:0.12.4`
139+
> E.g. in **Template/.github/workflows/rector.yml** supply the specific minor patch: `composer global require --dev rector/rector:0.12.16`
140140
141141
#### Unused
142142

composer.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,10 @@
3535
"roave/security-advisories": "dev-latest"
3636
},
3737
"minimum-stability": "dev",
38-
"prefer-stable": true
38+
"prefer-stable": true,
39+
"config": {
40+
"allow-plugins": {
41+
"phpstan/extension-installer": true
42+
}
43+
}
3944
}

src/Template/.github/workflows/rector.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,5 @@ jobs:
6464
6565
- name: Analyze for refactoring
6666
run: |
67-
composer global require --dev rector/rector:^0.12.10
67+
composer global require --dev rector/rector:^0.12.16
6868
rector process --dry-run --no-progress-bar

src/Template/rector.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
use Rector\Php56\Rector\FunctionLike\AddDefaultValueForUndefinedVariableRector;
3030
use Rector\Php73\Rector\FuncCall\JsonThrowOnErrorRector;
3131
use Rector\Php73\Rector\FuncCall\StringifyStrNeedlesRector;
32+
use Rector\Php74\Rector\Property\TypedPropertyRector;
3233
use Rector\PHPUnit\Set\PHPUnitSetList;
3334
use Rector\PSR4\Rector\FileWithoutNamespace\NormalizeNamespaceByPSR4ComposerAutoloadRector;
3435
use Rector\Set\ValueObject\LevelSetList;
@@ -122,4 +123,8 @@
122123
$services->set(MakeInheritedMethodVisibilitySameAsParentRector::class);
123124
$services->set(SimplifyEmptyArrayCheckRector::class);
124125
$services->set(NormalizeNamespaceByPSR4ComposerAutoloadRector::class);
126+
$services->set(TypedPropertyRector::class)
127+
->configure([
128+
TypedPropertyRector::INLINE_PUBLIC => true,
129+
]);
125130
};

0 commit comments

Comments
 (0)