-
Notifications
You must be signed in to change notification settings - Fork 174
Closed
Labels
Description
Pint Version
1.24.0
PHP Version
8.4
Description
Configuration property cast_spaces doesn't affect on lint results.
Steps To Reproduce
- Create new Laravel project
- Insert the following configuration in
pint.jsonfile
{
"preset": "per",
"rules": {
"array_push": true,
"backtick_to_shell_exec": true,
"cast_spaces": true,
"date_time_immutable": true,
"declare_strict_types": true,
"lowercase_keywords": true,
"lowercase_static_reference": true,
"fully_qualified_strict_types": true,
"global_namespace_import": {
"import_classes": true,
"import_constants": true,
"import_functions": true
},
"mb_str_functions": true,
"modernize_types_casting": true,
"new_with_parentheses": true,
"no_superfluous_elseif": true,
"no_useless_else": true,
"no_multiple_statements_per_line": true,
"ordered_interfaces": true,
"ordered_traits": true,
"strict_comparison": true,
"visibility_required": true
}
}- Write a statement with cast and run pint.
$body = (string)$response->getBody();- Check that it was fixed.
- Change
cast_spacestofalse. - Run pint again and see, that nothing was changed, but it should according to
noneconfiguration property of PHP-CS-Fixer.
https://cs.symfony.com/doc/rules/cast_notation/cast_spaces.html
realihorrud