Skip to content

Commit

Permalink
chore(deps-dev): update friendsofphp/php-cs-fixer requirement from 3.…
Browse files Browse the repository at this point in the history
…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](PHP-CS-Fixer/PHP-CS-Fixer@v3.40.0...v3.49.0)

---
updated-dependencies:
- dependency-name: friendsofphp/php-cs-fixer
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>

* refactor: apply php-cs-fixer

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: PedroTroller <[email protected]>
  • Loading branch information
dependabot[bot] and PedroTroller authored Feb 23, 2024
1 parent cc22341 commit bc4a766
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
13 changes: 9 additions & 4 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
final class DictionarySpec extends ObjectBehavior
{
/**
* @var Dictionary\Collection
* @var Collection
*/
private $dictionaries;

Expand Down

0 comments on commit bc4a766

Please sign in to comment.