From bc4a766e29d7a0a7f7df04dd7e2da4aea9f292ab Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 23 Feb 2024 17:12:59 +0100 Subject: [PATCH] chore(deps-dev): update friendsofphp/php-cs-fixer requirement from 3.40.0 to 3.49.0 (#255) * chore(deps-dev): update friendsofphp/php-cs-fixer requirement Updates the requirements on [friendsofphp/php-cs-fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer) to permit the latest version. - [Release notes](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/releases) - [Changelog](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/CHANGELOG.md) - [Commits](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.40.0...v3.49.0) --- updated-dependencies: - dependency-name: friendsofphp/php-cs-fixer dependency-type: direct:development ... Signed-off-by: dependabot[bot] * refactor: apply php-cs-fixer --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: PedroTroller --- .php-cs-fixer.dist.php | 13 +++++++++---- composer.json | 2 +- .../Faker/Provider/DictionarySpec.php | 2 +- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index e933cc31..52a3ad68 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -2,18 +2,23 @@ declare(strict_types=1); -$finder = PhpCsFixer\Finder::create() +use PedroTroller\CS\Fixer\Fixers; +use PedroTroller\CS\Fixer\RuleSetFactory; +use PhpCsFixer\Config; +use PhpCsFixer\Finder; + +$finder = Finder::create() ->in(__DIR__) ->append([__FILE__, __DIR__.'/.symfony_checker']) ; -$config = new PhpCsFixer\Config(); +$config = new Config(); $config->setFinder($finder); -$config->registerCustomFixers(new PedroTroller\CS\Fixer\Fixers()); +$config->registerCustomFixers(new Fixers()); $config->setRiskyAllowed(true); $config->setUsingCache(true); $config->setRules( - PedroTroller\CS\Fixer\RuleSetFactory::create() + RuleSetFactory::create() ->phpCsFixer(true) ->php(8.1, true) ->pedrotroller(true) diff --git a/composer.json b/composer.json index 9055d24f..308d1d7b 100644 --- a/composer.json +++ b/composer.json @@ -29,7 +29,7 @@ "require-dev": { "fakerphp/faker": "1.23.1", "friends-of-phpspec/phpspec-code-coverage": "6.3.0", - "friendsofphp/php-cs-fixer": "3.40.0", + "friendsofphp/php-cs-fixer": "3.49.0", "pedrotroller/php-cs-custom-fixer": "2.33.0", "phpspec/phpspec": "7.5.0", "phpspec/prophecy": "1.18.0", diff --git a/spec/Knp/DictionaryBundle/Faker/Provider/DictionarySpec.php b/spec/Knp/DictionaryBundle/Faker/Provider/DictionarySpec.php index f4f9be5f..6c1dcca3 100644 --- a/spec/Knp/DictionaryBundle/Faker/Provider/DictionarySpec.php +++ b/spec/Knp/DictionaryBundle/Faker/Provider/DictionarySpec.php @@ -12,7 +12,7 @@ final class DictionarySpec extends ObjectBehavior { /** - * @var Dictionary\Collection + * @var Collection */ private $dictionaries;