Closed CamilleScholtz closed 7 months ago
1.13.9
8.2.14
This bug happens since 1.13.9, not in 1.13.8. When having the binary_operator_spaces set to align_single_space_minimal all kinds of paths and strings get destroyed by spaces in places where they should be, some example:
binary_operator_spaces
align_single_space_minimal
'postal-code' => ['required', 'regex:/^[0-9]{4} ?[a-zA-Z]{2}$/'], // becomes 'postal-code' => ['required', 'regex:/^[0-9]{4} ?[a- zA- Z]{2}$/'], 'edit' => Pages\EditArticle::route('/{record}/edit'), // becomes 'edit' => Pages\EditArticle::route('/{record} /edit'),
The config:
{ "preset": "laravel", "rules": { "no_useless_else": true, "binary_operator_spaces": { "default": "align_single_space_minimal" } } }
Set the config file as shown above and run laravel pint.
Is already fixed, will probably be released on Tuesday.
Thanks @Jubeki
Pint Version
1.13.9
PHP Version
8.2.14
Description
This bug happens since 1.13.9, not in 1.13.8. When having the
binary_operator_spaces
set toalign_single_space_minimal
all kinds of paths and strings get destroyed by spaces in places where they should be, some example:The config:
Steps To Reproduce
Set the config file as shown above and run laravel pint.