Releases: facile-it/facile-coding-standard
Releases · facile-it/facile-coding-standard
1.3.0
1.2.0
1.1.0
1.0.1
1.0.0
- Bumping minimum PHP version required to 7.4
- Bumping minimum PHP-CS-Fixer version required to 3.4
- Dynamically replace deprecated rules depending on the PHP-CS-Fixer version in use
New rules
The following rules or groups have been added to the default rule set:
@PER-CS2.0
(with@PSR12
as fallback)@PER-CS2.0:risky
(with@PSR12:risky
as fallback)@DoctrineAnnotation
array_push
assign_null_coalescing_to_coalesce_equal
attribute_empty_parentheses
backtick_to_shell_exec
class_reference_name_casing
combine_consecutive_issets
combine_consecutive_unsets
combine_nested_dirname
curly_braces_position
declare_parentheses
empty_loop_body
ereg_to_preg
explicit_string_variable
get_class_to_class_keyword
heredoc_to_nowdoc
heredoc_indentation
implode_call
integer_literal_case
lambda_not_used_import
linebreak_after_opening_tag
list_syntax
long_to_shorthand_operator
magic_constant_casing
magic_method_casing
modernize_strpos
native_function_type_declaration_casing
native_type_declaration_casing
no_alternative_syntax
no_superfluous_elseif
no_superfluous_phpdoc_tags
no_trailing_comma_in_singleline
no_trailing_comma_in_singleline_function_call
no_unneeded_import_alias
no_unneeded_braces
no_unset_cast
no_useless_concat_operator
no_useless_else
no_useless_sprintf
nullable_type_declaration
octal_notation
operator_linebreak
ordered_traits
phpdoc_inline_tag_normalizer
phpdoc_no_alias_tag
phpdoc_param_order
phpdoc_summary
phpdoc_tag_casing
phpdoc_tag_type
phpdoc_var_annotation_correct_order
php_unit_data_provider_static
php_unit_dedicate_assert_internal_type
php_unit_expectation
php_unit_fqcn_annotation
php_unit_mock_short_will_return
return_to_yield_from
phpdoc_trim_consecutive_blank_line_separation
semicolon_after_instruction
single_line_comment_spacing
single_line_empty_body
single_space_around_construct
single_trait_insert_per_statement
switch_continue_to_break
type_declaration_spaces
types_spaces
no_homoglyph_names
set_type_to_cast
ternary_to_elvis_operator
Changes to existing rules
phpdoc_align
is now enabled with configleft
ordered_imports
is now falling back to PER-CS configuration, which is not the same as the default one
Removed rules
Multiple rules are removed (but still applied) since they're already covered in PER-CS or PSR-12 with the same configuration as before:
blank_line_after_namespace
blank_line_after_opening_tag
compact_nullable_type_declaration
declare_equal_normalize
lowercase_cast
new_with_parentheses
no_leading_import_slash
no_whitespace_in_blank_line
return_type_declaration
short_scalar_cast
ternary_operator_spaces
unary_operator_spaces
1.0.0-RC1
- Bumping minimum PHP version required to 7.4
- Bumping minimum PHP-CS-Fixer version required to 3.4
- Dynamically replace deprecated rules depending on the PHP-CS-Fixer version in use
New rules
The following rules or groups have been added to the default rule set:
@PER-CS2.0
(with@PSR12
as fallback)@PER-CS2.0:risky
(with@PSR12:risky
as fallback)@DoctrineAnnotation
array_push
assign_null_coalescing_to_coalesce_equal
attribute_empty_parentheses
backtick_to_shell_exec
class_reference_name_casing
combine_consecutive_issets
combine_consecutive_unsets
combine_nested_dirname
curly_braces_position
declare_parentheses
empty_loop_body
ereg_to_preg
explicit_string_variable
get_class_to_class_keyword
heredoc_to_nowdoc
heredoc_indentation
implode_call
integer_literal_case
lambda_not_used_import
linebreak_after_opening_tag
list_syntax
long_to_shorthand_operator
magic_constant_casing
magic_method_casing
modernize_strpos
native_function_type_declaration_casing
native_type_declaration_casing
no_alternative_syntax
no_superfluous_elseif
no_superfluous_phpdoc_tags
no_trailing_comma_in_singleline
no_trailing_comma_in_singleline_function_call
no_unneeded_import_alias
no_unneeded_braces
no_unset_cast
no_useless_concat_operator
no_useless_else
no_useless_sprintf
nullable_type_declaration
octal_notation
operator_linebreak
ordered_traits
phpdoc_inline_tag_normalizer
phpdoc_no_alias_tag
phpdoc_param_order
phpdoc_summary
phpdoc_tag_casing
phpdoc_tag_type
phpdoc_var_annotation_correct_order
php_unit_data_provider_static
php_unit_dedicate_assert_internal_type
php_unit_expectation
php_unit_fqcn_annotation
php_unit_mock_short_will_return
return_to_yield_from
phpdoc_trim_consecutive_blank_line_separation
semicolon_after_instruction
single_line_comment_spacing
single_line_empty_body
single_space_around_construct
single_trait_insert_per_statement
switch_continue_to_break
type_declaration_spaces
types_spaces
no_homoglyph_names
set_type_to_cast
ternary_to_elvis_operator
Changes to existing rules
phpdoc_align
is now enabled with configleft
ordered_imports
is now falling back to PER-CS configuration, which is not the same as the default one
Removed rules
Multiple rules are removed (but still applied) since they're already covered in PER-CS or PSR-12 with the same configuration as before:
blank_line_after_namespace
blank_line_after_opening_tag
compact_nullable_type_declaration
declare_equal_normalize
lowercase_cast
new_with_parentheses
no_leading_import_slash
no_whitespace_in_blank_line
return_type_declaration
short_scalar_cast
ternary_operator_spaces