Skip to content

Commit 287e081

Browse files
authored
Revert Rector back to version 0.15.19 (#635)
The Rector upgrade had many breaking changes so reversion was necessary. Look at upgrade path going forward if necessary.
1 parent 5e142c5 commit 287e081

File tree

5 files changed

+19
-23
lines changed

5 files changed

+19
-23
lines changed

rector-php.php

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

4141
return static function (RectorConfig $config): void {
4242

43-
$config->parallel(processTimeout: 1200);
43+
$config->parallel(seconds: 1200);
4444

4545
$config->autoloadPaths([
4646
__DIR__ ,

tools/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"require-dev": {
88
"friendsofphp/php-cs-fixer": "^3.1",
99
"phpunit/phpunit": "^9.4",
10-
"rector/rector": "1.2.0",
10+
"rector/rector": "0.15.19",
1111
"vimeo/psalm": "^4.26",
1212
"phpstan/phpstan": "^1.7"
1313
}

tools/composer.lock

Lines changed: 14 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/src/AmazonPHP/Rector/ClassMethod/FixArgumentDefaultValuesNotMatchingTypeRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use PhpParser\Node;
88
use PhpParser\Node\Stmt\ClassMethod;
99
use PHPStan\Type\StringType;
10-
use Rector\Rector\AbstractRector;
10+
use Rector\Core\Rector\AbstractRector;
1111
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
1212
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
1313

tools/src/AmazonPHP/Rector/ClassMethod/SetNullableFunctionReturnTypeRector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
use PhpParser\Node\Stmt\ClassMethod;
1010
use PHPStan\Type\NullType;
1111
use PHPStan\Type\UnionType;
12-
use Rector\Contract\Rector\ConfigurableRectorInterface;
12+
use Rector\Core\Contract\Rector\ConfigurableRectorInterface;
13+
use Rector\Core\Rector\AbstractRector;
1314
use Rector\PHPStanStaticTypeMapper\Enum\TypeKind;
14-
use Rector\Rector\AbstractRector;
1515
use Symplify\RuleDocGenerator\ValueObject\CodeSample\ConfiguredCodeSample;
1616
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
1717
use Webmozart\Assert\Assert;

0 commit comments

Comments
 (0)