Skip to content

Commit

Permalink
Merge pull request #23 from zingimmick/support-for-rector-0.7.55
Browse files Browse the repository at this point in the history
Support for rector 0.7.55
  • Loading branch information
kodiakhq[bot] authored Jul 30, 2020
2 parents 6928117 + 1bf8f83 commit 74f5b9b
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 8 deletions.
5 changes: 2 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ PRs and issues are linked, so you can find more about it. Thanks to [ChangelogLi

## [1.0.5] - 2020-07-01

- [#3] Update symplify/easy-coding-standard requirement from ^7.2 to ^8.1, Thanks to [@dependabot][bot]
- [#2] Bump actions/cache from v1 to v2, Thanks to [@dependabot][bot]
- [#3] Update symplify/easy-coding-standard requirement from ^7.2 to ^8.1
- [#2] Bump actions/cache from v1 to v2

[#21]: https://github.com/zingimmick/coding-standard/pull/21
[#20]: https://github.com/zingimmick/coding-standard/pull/20
Expand All @@ -75,7 +75,6 @@ PRs and issues are linked, so you can find more about it. Thanks to [ChangelogLi
[#4]: https://github.com/zingimmick/coding-standard/pull/4
[#3]: https://github.com/zingimmick/coding-standard/pull/3
[#2]: https://github.com/zingimmick/coding-standard/pull/2
[@dependabot]: https://github.com/dependabot
[2.0.1]: https://github.com/zingimmick/coding-standard/compare/2.0.0...2.0.1
[2.0.0]: https://github.com/zingimmick/coding-standard/compare/1.3.1...2.0.0
[1.3.1]: https://github.com/zingimmick/coding-standard/compare/1.2.4...1.3.1
Expand Down
2 changes: 1 addition & 1 deletion changelog-linker.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
parameters:
authors_to_ignore: ['zingimmick', 'dependabot']
authors_to_ignore: ['zingimmick', 'dependabot[bot]']
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
},
"require-dev": {
"phpunit/phpunit": "^7.0|^8.0|^9.0",
"roave/security-advisories": "dev-master",
"symplify/changelog-linker": "^8.1"
"roave/security-advisories": "dev-master"
},
"autoload-dev": {
"psr-4": {
Expand Down
4 changes: 4 additions & 0 deletions ecs.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@

return static function (ContainerConfigurator $containerConfigurator): void {
$containerConfigurator->import(__DIR__.'/config/config.php');

$parameters = $containerConfigurator->parameters();

$parameters->set(Option::SETS, [
SetList::PHP_70,
SetList::PHP_71,
Expand All @@ -17,11 +19,13 @@
SetList::COMMON,
SetList::PSR_12,
]);

$parameters->set(Option::PATHS, [
'config',
'fixed',
'tests',
]);

$parameters->set(Option::EXCLUDE_PATHS, [
'correct/*.php',
'wrong/*.php',
Expand Down
9 changes: 7 additions & 2 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,14 @@

return static function (ContainerConfigurator $containerConfigurator): void {
$parameters = $containerConfigurator->parameters();

$parameters->set(Option::AUTOLOAD_PATHS, [
__DIR__ . '/vendor/squizlabs/php_codesniffer/autoload.php',
]);

$parameters->set(Option::SETS, [
SetList::ACTION_INJECTION_TO_CONSTRUCTOR_INJECTION,
SetList::ARRAY_STR_FUNCTIONS_TO_STATIC_CALL,
SetList::CELEBRITY,
// 'doctrine',
SetList::PHPSTAN,
SetList::PHPUNIT_CODE_QUALITY,
SetList::SOLID,
Expand All @@ -29,6 +32,7 @@
SetList::PHP_71,
SetList::PHP_72,
]);

$parameters->set(Option::EXCLUDE_RECTORS, [
FinalizeClassesWithoutChildrenRector::class,
ChangeReadOnlyVariableWithDefaultValueToConstantRector::class,
Expand All @@ -37,6 +41,7 @@
AddSeeTestAnnotationRector::class,
RemoveUnusedFunctionRector::class,
]);

$parameters->set(Option::PATHS, [
'config',
'fixed',
Expand Down

0 comments on commit 74f5b9b

Please sign in to comment.