Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"maglnet/composer-require-checker": "^3.0 || ^4.0",
"mikey179/vfsstream": "^1.6",
"phpunit/phpunit": "^9",
"rector/rector": "^1.0",
"squizlabs/php_codesniffer": "^3.6"
},
"suggest": {
Expand Down
121 changes: 119 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions rector.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php
use Rector\Config\RectorConfig;
use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromStrictConstructorRector;
use Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector;
use Rector\Php81\Rector\Property\ReadOnlyPropertyRector;

return RectorConfig::configure()
->withPaths([ __DIR__ . '/' ])
->withSkip([
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be easier to just point rector at src and tests, and ignore everything else? We shouldn't have any source files in other folders.

__DIR__ . '/.github',
__DIR__ . '/vendor',
__DIR__ . '/docs',
'rector.php',
'.gitignore',
'.git',
'CHANGELOG.md',
'composer.json',
'composer.lock',
'phpunit.xml',
'README.md',
'CONTRIBUTING.md',
'dev.yml',
'LICENSE',
'RELEASING.md',
'run_test_resource_test.sh',
'composer-require-checker.json'
])
->withRules([
ReadOnlyPropertyRector::class,
TypedPropertyFromStrictConstructorRector::class,
NullToStrictStringFuncCallArgRector::class
]);