Skip to content

Commit

Permalink
[PHP 8.0] Add ChangeSwitchToMatchRector
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Jul 26, 2020
1 parent 3acacc0 commit 7c4e72a
Show file tree
Hide file tree
Showing 12 changed files with 376 additions and 2,567 deletions.
11 changes: 10 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"jean85/pretty-package-versions": "^1.2",
"nette/robot-loader": "^3.2",
"nette/utils": "^3.1",
"nikic/php-parser": "4.5",
"nikic/php-parser": "dev-php80-match-expression-v2 as 4.5",
"ondram/ci-detector": "^3.4",
"phpstan/phpdoc-parser": "^0.4.7",
"phpstan/phpstan-phpunit": "^0.12.10",
Expand Down Expand Up @@ -55,6 +55,15 @@
"symplify/phpstan-extensions": "^8.1.15",
"thecodingmachine/phpstan-strict-rules": "^0.12"
},
"replace": {
"rector/rector-prefixed": "self.version"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/TomasVotruba/PHP-Parser.git"
}
],
"autoload": {
"psr-4": {
"Rector\\Architecture\\": "rules/architecture/src",
Expand Down
3 changes: 3 additions & 0 deletions config/set/php80.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use Rector\Php80\Rector\Identical\StrEndsWithRector;
use Rector\Php80\Rector\Identical\StrStartsWithRector;
use Rector\Php80\Rector\NotIdentical\StrContainsRector;
use Rector\Php80\Rector\Switch_\ChangeSwitchToMatchRector;
use Rector\Php80\Rector\Ternary\GetDebugTypeRector;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;

Expand All @@ -36,4 +37,6 @@
$services->set(TokenGetAllToObjectRector::class);

$services->set(RemoveUnusedVariableInCatchRector::class);

$services->set(ChangeSwitchToMatchRector::class);
};
Loading

0 comments on commit 7c4e72a

Please sign in to comment.