Skip to content

Commit

Permalink
Replace php-cs-fixer with Laravel Pint (#2780)
Browse files Browse the repository at this point in the history
* Replace php-cs-fixer with Laravel Pint
* Require laravel/pint ^1.0 to support PHP 8.0 like the main package
  • Loading branch information
bobbrodie authored Dec 26, 2024
1 parent 52119a1 commit ee71301
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"require-dev": {
"larastan/larastan": "^1.0|^2.0",
"laravel/passport": "^11.0|^12.0",
"laravel/pint": "^1.0",
"orchestra/testbench": "^6.23|^7.0|^8.0|^9.0",
"phpunit/phpunit": "^9.4|^10.1"
},
Expand Down Expand Up @@ -65,7 +66,7 @@
},
"scripts": {
"test": "phpunit",
"format": "php-cs-fixer fix --allow-risky=yes",
"format": "pint",
"analyse": "phpstan analyse"
}
}
6 changes: 6 additions & 0 deletions pint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"preset": "laravel",
"rules": {
"php_unit_method_casing": false
}
}

0 comments on commit ee71301

Please sign in to comment.