Closed jimmyklein-actual closed 9 months ago
Thank you, this seems more of an issue with PHP CS Fixer itself. Could you open an issue on their repo and provide them with a reproducible example using just PHP CS fixer? Thanks
The laravel
preset is given by pint ? Where can I find the php-cs-fixer configuration for laravel
preset ?
"operator_linebreak": {
"position": "beginning"
}
We don't create these rules. If your issue is with one of these it's best to provide a reproducible example for PHP CS Fixer.
Pint Version
1.3.8
PHP Version
8.2.12
Description
Hello,
We encountered a bug when we lint a file containing a
switch
with acase
with a ternary operator.This is a example class before lauching pint
Notice that there is no space between
'2'
and:
.This is the pint.json file
Launching pint
Result with Pint version 1.3.7 👍
'2'
and:
is addedResult with Pint version 1.3.8 ❌
'2'
and:
is added:case 4
line is awfulMore infos
This problem is not present when using preset
symfony
(but present with presetpsr12
)I'm available to give more informations.
Steps To Reproduce
Everything is in the description.