mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-07 11:50:51 +00:00
composer: use phpstan with php-parser 4.10.5 (#6327)
* composer: use phpstan with php-parser 4.10.5 * bump to php-cs-fixer 3.0 * bump to xdebug handler 2.0
This commit is contained in:
parent
3696a7ac9a
commit
f5bb6cd17e
2
.github/workflows/packages_tests.yaml
vendored
2
.github/workflows/packages_tests.yaml
vendored
|
@ -38,8 +38,6 @@ jobs:
|
|||
with:
|
||||
php-version: 7.3
|
||||
coverage: none
|
||||
-
|
||||
run: composer require nikic/php-parser:4.10.4 --no-update
|
||||
|
||||
-
|
||||
run: composer install --ansi
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
"ext-dom": "*",
|
||||
"ext-json": "*",
|
||||
"composer/semver": "^3.2",
|
||||
"composer/xdebug-handler": "^1.4|^2.0",
|
||||
"composer/xdebug-handler": "^2.0",
|
||||
"danielstjules/stringy": "^3.1",
|
||||
"doctrine/inflector": "^2.0",
|
||||
"jean85/pretty-package-versions": "^1.6",
|
||||
|
@ -38,7 +38,7 @@
|
|||
"nette/utils": "^3.2",
|
||||
"nikic/php-parser": "4.10.5",
|
||||
"phpstan/phpdoc-parser": "^0.5.4",
|
||||
"phpstan/phpstan": "^0.12.83",
|
||||
"phpstan/phpstan": "dev-master#7a8ebc3",
|
||||
"phpstan/phpstan-phpunit": "^0.12.18",
|
||||
"rector/rector-cakephp": "^0.10.4",
|
||||
"rector/rector-doctrine": "^0.10.6",
|
||||
|
@ -67,7 +67,7 @@
|
|||
"webmozart/assert": "^1.10"
|
||||
},
|
||||
"require-dev": {
|
||||
"friendsofphp/php-cs-fixer": "^2.18.6",
|
||||
"friendsofphp/php-cs-fixer": "^3.0",
|
||||
"nette/application": "^3.0.7",
|
||||
"nette/di": "^3.0",
|
||||
"nette/forms": "^3.0",
|
||||
|
@ -94,7 +94,8 @@
|
|||
"Rector\\Compiler\\": "utils/compiler/src"
|
||||
},
|
||||
"files": [
|
||||
"src/functions/node_helper.php"
|
||||
"src/functions/node_helper.php",
|
||||
"src/constants.php"
|
||||
]
|
||||
},
|
||||
"autoload-dev": {
|
||||
|
@ -155,5 +156,7 @@
|
|||
"config": {
|
||||
"sort-packages": true,
|
||||
"platform-check": false
|
||||
}
|
||||
},
|
||||
"minimum-stability": "dev",
|
||||
"prefer-stable": true
|
||||
}
|
||||
|
|
|
@ -53,7 +53,7 @@ final class ConsoleApplication extends Application
|
|||
// @fixes https://github.com/rectorphp/rector/issues/2205
|
||||
$isXdebugAllowed = $input->hasParameterOption('--xdebug');
|
||||
if (! $isXdebugAllowed) {
|
||||
$xdebugHandler = new XdebugHandler('rector', '--ansi');
|
||||
$xdebugHandler = new XdebugHandler('rector');
|
||||
$xdebugHandler->check();
|
||||
unset($xdebugHandler);
|
||||
}
|
||||
|
|
|
@ -3,11 +3,11 @@
|
|||
declare(strict_types=1);
|
||||
|
||||
// mimic missing T_ENUM constant on PHP 8.0-
|
||||
if (defined('T_ENUM') === false) {
|
||||
if (! defined('T_ENUM')) {
|
||||
define('T_ENUM', 5000);
|
||||
}
|
||||
|
||||
// mimic missing T_NAME_RELATIVE constant on PHP 8.0-
|
||||
if (defined('T_NAME_RELATIVE') === false) {
|
||||
if (! defined('T_NAME_RELATIVE')) {
|
||||
define('T_NAME_RELATIVE', 5001);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user