From e95e8956ce3fd43346a403f67704dbc0796f0eab Mon Sep 17 00:00:00 2001 From: Flavio Heleno Date: Tue, 7 Jun 2022 14:57:16 -0300 Subject: [PATCH] Updated dev dependencies --- .gitignore | 2 +- .php_cs => .php-cs-fixer.php | 4 ++-- composer.json | 13 ++++++++----- 3 files changed, 11 insertions(+), 8 deletions(-) rename .php_cs => .php-cs-fixer.php (94%) diff --git a/.gitignore b/.gitignore index 228f5459..64afb0b5 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,4 @@ vendor/ bin/ composer.lock .vagrant -/.php_cs.cache +/.php-cs-fixer.cache diff --git a/.php_cs b/.php-cs-fixer.php similarity index 94% rename from .php_cs rename to .php-cs-fixer.php index 2555e1b8..3bde3b9f 100644 --- a/.php_cs +++ b/.php-cs-fixer.php @@ -8,11 +8,11 @@ ->notPath('/fixtures/') ; -return \PhpCsFixer\Config::create() +$config = new \PhpCsFixer\Config(); +return $config ->setRules([ '@Symfony' => true, '@Symfony:risky' => true, - '@PHP56Migration' => true, '@PHP56Migration:risky' => true, '@PHP70Migration' => true, '@PHP70Migration:risky' => true, diff --git a/composer.json b/composer.json index 684e8ba2..fea3731c 100644 --- a/composer.json +++ b/composer.json @@ -6,7 +6,10 @@ "config": { "optimize-autoloader": true, "sort-packages": true, - "preferred-install": "dist" + "preferred-install": "dist", + "allow-plugins": { + "infection/extension-installer": true + } }, "minimum-stability": "dev", "prefer-stable": true, @@ -40,12 +43,12 @@ "php-http/httplug-bundle": "For integration with Symfony" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^2.17", - "infection/infection": "^0.21.5 || ^0.24.0", + "friendsofphp/php-cs-fixer": "^3.8", + "infection/infection": "^0.26", "php-parallel-lint/php-parallel-lint": "^1.2", - "phpstan/phpstan": "^0.12.58", + "phpstan/phpstan": "^1.0", "phpunit/phpunit": "^9.5", - "psy/psysh": "^0.10.5", + "psy/psysh": "^0.11", "roave/security-advisories": "dev-master", "squizlabs/php_codesniffer": "^3.5", "vimeo/psalm": "^4.3"