Skip to content

Commit

Permalink
Upgrade to PHP-CS-Fixer 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Art4 committed Jan 22, 2024
1 parent 4b26c21 commit ab510fd
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ jobs:
php-version: '8.3'
extensions: gd, imagick
- name: php-cs-fixer
run: |
wget https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.16.4/php-cs-fixer.phar -q
php php-cs-fixer.phar fix --dry-run --diff
run: vendor/bin/php-cs-fixer fix --dry-run --diff

tests:
runs-on: ubuntu-22.04
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
build
vendor
docs/_site
.php_cs.cache
.php-cs-fixer.cache
.phpunit.result.cache
composer.lock
14 changes: 14 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

$finder = (new PhpCsFixer\Finder())
->in('src')
->in('tests')
;

return (new PhpCsFixer\Config())
->setRules([
'@Symfony' => true,
'phpdoc_annotation_without_dot' => false,
])
->setFinder($finder)
;
13 changes: 0 additions & 13 deletions .php_cs.dist

This file was deleted.

3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
"require-dev": {
"mockery/mockery": "^1.3.3",
"phpunit/phpunit": "^8.5|^9.0",
"phpunit/php-token-stream": "^3.1|^4.0"
"phpunit/php-token-stream": "^3.1|^4.0",
"friendsofphp/php-cs-fixer": "^3.48"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit ab510fd

Please sign in to comment.