Skip to content

Commit ee71301

Browse files
authored
Replace php-cs-fixer with Laravel Pint (#2780)
* Replace php-cs-fixer with Laravel Pint * Require laravel/pint ^1.0 to support PHP 8.0 like the main package
1 parent 52119a1 commit ee71301

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

composer.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"require-dev": {
3232
"larastan/larastan": "^1.0|^2.0",
3333
"laravel/passport": "^11.0|^12.0",
34+
"laravel/pint": "^1.0",
3435
"orchestra/testbench": "^6.23|^7.0|^8.0|^9.0",
3536
"phpunit/phpunit": "^9.4|^10.1"
3637
},
@@ -65,7 +66,7 @@
6566
},
6667
"scripts": {
6768
"test": "phpunit",
68-
"format": "php-cs-fixer fix --allow-risky=yes",
69+
"format": "pint",
6970
"analyse": "phpstan analyse"
7071
}
7172
}

pint.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"preset": "laravel",
3+
"rules": {
4+
"php_unit_method_casing": false
5+
}
6+
}

0 commit comments

Comments
 (0)