Skip to content

Commit 1ff6165

Browse files
committed
Rectoring fixes
1 parent 14df603 commit 1ff6165

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1234,7 +1234,7 @@ Contributions are welcome! Please follow these guidelines:
12341234
```bash
12351235
composer cs-check # Check code style
12361236
composer stan # Run PHPStan analysis
1237-
composer rector # Run rectoring
1237+
composer rector-check # Run rectoring
12381238
composer test # Run tests
12391239
```
12401240

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"stan": "phpstan analyse",
4040
"cs-check": "phpcs --colors -p -s",
4141
"cs-fix": "phpcbf --colors -p -s",
42-
"rector": "rector --ansi"
42+
"rector-check": "rector --dry-run --ansi",
43+
"rector-fix": "rector --ansi"
4344
}
4445
}

rector.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
use Rector\CodeQuality\Rector\If_\SimplifyIfElseToTernaryRector;
55
use Rector\Config\RectorConfig;
66
use Rector\Strict\Rector\Empty_\DisallowedEmptyRuleFixerRector;
7-
use Rector\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromStrictFluentReturnRector;
87
use Rector\ValueObject\PhpVersion;
98

109
return RectorConfig::configure()
@@ -16,8 +15,6 @@
1615
->withSkip([
1716
DisallowedEmptyRuleFixerRector::class,
1817
SimplifyIfElseToTernaryRector::class,
19-
// CakePHP coding standards don't allow return type hints on fluent methods
20-
ReturnTypeFromStrictFluentReturnRector::class,
2118
])
2219
->withImportNames(
2320
importNames: true,

0 commit comments

Comments
 (0)