Coming from php-cs-fixer
Config translation
pun migrate keeps the old config and reports what it skips. Planned rules do not run.
Run pun migrate --from php-cs-fixer. It reads .php-cs-fixer.php or .php-cs-fixer.dist.php through PHP-CS-Fixer, so it needs system PHP.
| PHP-CS-Fixer config | pun.toml |
|---|---|
setRules() and rule sets such as @PER-CS |
Expanded rules, split between [format.rules] and [lint.rules] |
setRiskyAllowed(true) |
Enabled risky fixers become lint rules at "error" |
| Configured options | Pun names and values, on each rule page |
Finder in(), exclude(), notName(), notPath() |
[files] paths, exclude; [format] not-name, not-path |
| Custom fixer classes | Reported and skipped |
Rule mapping
300 of 300 upstream entries
| Upstream name | Pun rule | Notes |
|---|---|---|
align_multiline_commentphp-cs-fixer | format/comments/align-multiline | Same. Options: renamed for TOML: [options."format/comments/align-multiline"]. |
array_indentationphp-cs-fixer | format/arrays/indentation | Same. |
array_pushphp-cs-fixer | lint/style/no-array-push | Merged with ChangeArrayPushToArrayAssign. |
array_syntaxphp-cs-fixer | format/arrays/syntax | Merged with array-style. Options: renamed for TOML: [options."format/arrays/syntax"]. |
assign_null_coalescing_to_coalesce_equalphp-cs-fixer | lint/operators/prefer-coalesce-assign | Same. |
attribute_block_no_spacesphp-cs-fixer | format/attributes/no-block-spaces | Same. |
attribute_empty_parenthesesphp-cs-fixer | format/attributes/empty-parentheses | Same. Options: renamed for TOML: [options."format/attributes/empty-parentheses"]. |
backtick_to_shell_execphp-cs-fixer | format/functions/backtick-to-shell-exec | Merged with ShellExecFunctionCallOverBackticks, BacktickRule, DisallowedBacktickRule and 4 others (see the rule's Replaces section). |
binary_operator_spacesphp-cs-fixer | format/operators/binary-spacing | Same. Options: renamed for TOML: [options."format/operators/binary-spacing"]. |
blank_line_after_namespacephp-cs-fixer | format/imports/blank-line-after-namespace | Same. |
blank_line_after_opening_tagphp-cs-fixer | format/tags/blank-line-after-opening | Same. |
blank_line_before_statementphp-cs-fixer | format/statements/blank-line-before | Same. Options: renamed for TOML: [options."format/statements/blank-line-before"]. |
blank_line_between_import_groupsphp-cs-fixer | format/imports/blank-line-between-groups | Same. |
blank_lines_before_namespacephp-cs-fixer | format/imports/blank-lines-before-namespace | Same. Options: renamed for TOML: [options."format/imports/blank-lines-before-namespace"]. |
bracesphp-cs-fixer | — | deprecated upstream; successor: single_space_around_construct, control_structure_braces, control_structure_continuation_position, declare_parentheses, no_multiple_statements_per_line, braces_position, statement_indentation, no_extra_blank_lines |
braces_positionphp-cs-fixer | format/statements/braces-position | Same. Options: renamed for TOML: [options."format/statements/braces-position"]. |
cast_spacesphp-cs-fixer | format/casts/spacing | Same. Options: renamed for TOML: [options."format/casts/spacing"]. |
class_attributes_separationphp-cs-fixer | format/classes/member-separation | Merged with NewlineBetweenClassLikeStmts. Options: renamed for TOML: [options."format/classes/member-separation"]. |
class_definitionphp-cs-fixer | format/classes/definition | Same. Options: renamed for TOML: [options."format/classes/definition"]. |
class_keywordphp-cs-fixer | lint/style/prefer-class-constant | Merged with StringClassNameToClassConstant, UseClassKeywordForClassNameResolution, no-literal-namespace-string. |
class_keyword_removephp-cs-fixer | — | deprecated upstream; successor: none (removed) |
class_reference_name_casingphp-cs-fixer | format/casing/class-reference | Same. |
clean_namespacephp-cs-fixer | format/imports/clean-namespace | Same. |
combine_consecutive_issetsphp-cs-fixer | lint/control-flow/prefer-combined-isset | Merged with combine-consecutive-issets. |
combine_consecutive_unsetsphp-cs-fixer | lint/control-flow/prefer-combined-unset | Same. |
combine_nested_dirnamephp-cs-fixer | lint/style/prefer-dirname-levels | Same. |
comment_to_phpdocphp-cs-fixer | lint/style/prefer-phpdoc-comment | Same. Options: renamed for TOML: [options."lint/style/prefer-phpdoc-comment"]. |
compact_nullable_type_declarationphp-cs-fixer | format/types/compact-nullable | Same. |
compact_nullable_typehintphp-cs-fixer | — | deprecated upstream; successor: compact_nullable_type_declaration |
concat_spacephp-cs-fixer | format/operators/concat-spacing | Same. Options: renamed for TOML: [options."format/operators/concat-spacing"]. |
constant_casephp-cs-fixer | format/casing/constants | Same. Options: renamed for TOML: [options."format/casing/constants"]. |
control_structure_bracesphp-cs-fixer | format/control-flow/braces | Merged with CompleteMissingIfElseBracket, block-statement. |
control_structure_continuation_positionphp-cs-fixer | format/control-flow/continuation-position | Same. Options: renamed for TOML: [options."format/control-flow/continuation-position"]. |
curly_braces_positionphp-cs-fixer | — | deprecated upstream; successor: braces_position |
date_time_create_from_format_callphp-cs-fixer | lint/style/require-create-from-format-bang | Same. |
date_time_immutablephp-cs-fixer | lint/style/prefer-date-time-immutable | Same. |
declare_equal_normalizephp-cs-fixer | format/statements/declare-equal | Same. Options: renamed for TOML: [options."format/statements/declare-equal"]. |
declare_parenthesesphp-cs-fixer | format/statements/declare-parentheses | Same. |
declare_strict_typesphp-cs-fixer | lint/statements/require-strict-types | Merged with strict-types. Options: renamed for TOML: [options."lint/statements/require-strict-types"]. |
dir_constantphp-cs-fixer | lint/style/prefer-dir-constant | Same. |
doctrine_annotation_array_assignmentphp-cs-fixer | — | Doctrine rules: out of scope (Laravel-first); migrate lists them |
doctrine_annotation_bracesphp-cs-fixer | — | Doctrine rules: out of scope (Laravel-first); migrate lists them |
doctrine_annotation_indentationphp-cs-fixer | — | Doctrine rules: out of scope (Laravel-first); migrate lists them |
doctrine_annotation_spacesphp-cs-fixer | — | Doctrine rules: out of scope (Laravel-first); migrate lists them |
echo_tag_syntaxphp-cs-fixer | format/tags/echo-syntax | Same. Options: renamed for TOML: [options."format/tags/echo-syntax"]. |
elseifphp-cs-fixer | format/control-flow/elseif | Same. |
empty_loop_bodyphp-cs-fixer | format/control-flow/empty-loop-body | Same. Options: renamed for TOML: [options."format/control-flow/empty-loop-body"]. |
empty_loop_conditionphp-cs-fixer | format/control-flow/empty-loop-condition | Same. Options: renamed for TOML: [options."format/control-flow/empty-loop-condition"]. |
encodingphp-cs-fixer | format/whitespace/encoding | Merged with FileWhitespaceRule, whitespace.bom. |
ereg_to_pregphp-cs-fixer | lint/style/no-ereg | Same. |
error_suppressionphp-cs-fixer | lint/operators/no-error-suppression | Merged with no-error-control-operator. Options: renamed for TOML: [options."lint/operators/no-error-suppression"]. |
escape_implicit_backslashesphp-cs-fixer | — | deprecated upstream; successor: string_implicit_backslashes |
explicit_indirect_variablephp-cs-fixer | format/statements/explicit-indirect-variable | Same. |
explicit_string_variablephp-cs-fixer | format/strings/explicit-variable | Merged with braced-string-interpolation. |
final_classphp-cs-fixer | lint/style/require-final-class | Same. |
final_internal_classphp-cs-fixer | lint/style/require-final-internal-class | Same. Options: renamed for TOML: [options."lint/style/require-final-internal-class"]. |
final_public_method_for_abstract_classphp-cs-fixer | lint/style/require-final-public-method | Same. |
fopen_flag_orderphp-cs-fixer | lint/style/require-fopen-flag-order | Same. |
fopen_flagsphp-cs-fixer | lint/style/require-fopen-binary-flag | Same. Options: renamed for TOML: [options."lint/style/require-fopen-binary-flag"]. |
full_opening_tagphp-cs-fixer | format/tags/full-opening | Merged with no-short-opening-tag. |
fully_qualified_strict_typesphp-cs-fixer | format/imports/fully-qualified-strict-types | Same. Options: renamed for TOML: [options."format/imports/fully-qualified-strict-types"]. |
function_declarationphp-cs-fixer | format/functions/declaration | Same. Options: renamed for TOML: [options."format/functions/declaration"]. |
function_to_constantphp-cs-fixer | lint/refactor/prefer-constant | Same. Options: renamed for TOML: [options."lint/refactor/prefer-constant"]. |
function_typehint_spacephp-cs-fixer | — | deprecated upstream; successor: type_declaration_spaces |
general_attribute_removephp-cs-fixer | lint/refactor/remove-attribute | Same. Options: renamed for TOML: [options."lint/refactor/remove-attribute"]. |
general_phpdoc_annotation_removephp-cs-fixer | lint/refactor/remove-phpdoc-annotation | Same. Options: renamed for TOML: [options."lint/refactor/remove-phpdoc-annotation"]. |
general_phpdoc_tag_renamephp-cs-fixer | lint/refactor/rename-phpdoc-tag | Same. Options: renamed for TOML: [options."lint/refactor/rename-phpdoc-tag"]. |
get_class_to_class_keywordphp-cs-fixer | lint/style/prefer-class-keyword-on-object | Same. |
global_namespace_importphp-cs-fixer | format/imports/global-namespace | Merged with no-fully-qualified-global-class-like, no-fully-qualified-global-constant, no-fully-qualified-global-function. Options: renamed for TOML: [options."format/imports/global-namespace"]. |
group_importphp-cs-fixer | format/imports/group | Same. Options: renamed for TOML: [options."format/imports/group"]. |
header_commentphp-cs-fixer | format/comments/header | Same. Options: renamed for TOML: [options."format/comments/header"]. |
heredoc_closing_markerphp-cs-fixer | format/strings/heredoc-closing-marker | Same. Options: renamed for TOML: [options."format/strings/heredoc-closing-marker"]. |
heredoc_indentationphp-cs-fixer | format/strings/heredoc-indentation | Same. Options: renamed for TOML: [options."format/strings/heredoc-indentation"]. |
heredoc_to_nowdocphp-cs-fixer | format/strings/heredoc-to-nowdoc | Same. |
implode_callphp-cs-fixer | lint/style/require-implode-separator | Same. |
includephp-cs-fixer | format/control-flow/include | Same. |
increment_stylephp-cs-fixer | format/operators/increment-style | Merged with prefer-pre-increment. Options: renamed for TOML: [options."format/operators/increment-style"]. |
indentation_typephp-cs-fixer | format/whitespace/indentation-type | Same. |
integer_literal_casephp-cs-fixer | format/casing/integer-literals | Same. |
is_nullphp-cs-fixer | lint/style/no-is-null | Merged with no-is-null. |
lambda_not_used_importphp-cs-fixer | lint/functions/no-unused-closure-use | Merged with RemoveUnusedClosureVariableUse, UnusedClosureUsesRule, no-unused-closure-capture and 2 others (see the rule's Replaces section). |
line_endingphp-cs-fixer | format/whitespace/line-ending | Same. |
linebreak_after_opening_tagphp-cs-fixer | format/tags/linebreak-after-opening | Same. |
list_syntaxphp-cs-fixer | format/arrays/list-syntax | Same. Options: renamed for TOML: [options."format/arrays/list-syntax"]. |
logical_operatorsphp-cs-fixer | lint/operators/no-and-or-keywords | Merged with LogicalToBoolean. |
long_to_shorthand_operatorphp-cs-fixer | lint/style/prefer-compound-assignment | Merged with CombinedAssign, use-compound-assignment. |
lowercase_castphp-cs-fixer | format/casts/lowercase | Same. |
lowercase_keywordsphp-cs-fixer | format/casing/keywords | Merged with lowercase-keyword. |
lowercase_static_referencephp-cs-fixer | format/casing/static-reference | Same. |
magic_constant_casingphp-cs-fixer | format/casing/magic-constants | Same. |
magic_method_casingphp-cs-fixer | format/casing/magic-methods | Same. |
mb_str_functionsphp-cs-fixer | lint/strings/prefer-mb-functions | Same. |
method_argument_spacephp-cs-fixer | format/functions/argument-spacing | Same. Options: renamed for TOML: [options."format/functions/argument-spacing"]. |
method_chaining_indentationphp-cs-fixer | format/functions/chain-indentation | Same. |
modern_serialization_methodsphp-cs-fixer | lint/style/no-sleep-wakeup | Merged with SleepToSerialize, WakeupToUnserialize. |
modernize_strposphp-cs-fixer | lint/style/prefer-str-contains | Merged with str-contains, str-starts-with. Options: renamed for TOML: [options."lint/style/prefer-str-contains"]. |
modernize_types_castingphp-cs-fixer | lint/style/prefer-cast-over-intval | Same. |
modifier_keywordsphp-cs-fixer | format/classes/modifier-keywords | Merged with VarToPublicProperty. Options: renamed for TOML: [options."format/classes/modifier-keywords"]. |
multiline_comment_opening_closingphp-cs-fixer | format/comments/multiline-delimiters | Same. |
multiline_promoted_propertiesphp-cs-fixer | format/classes/multiline-promoted-properties | Same. Options: renamed for TOML: [options."format/classes/multiline-promoted-properties"]. |
multiline_string_to_heredocphp-cs-fixer | format/strings/multiline-to-heredoc | Same. |
multiline_whitespace_before_semicolonsphp-cs-fixer | format/statements/multiline-semicolon | Same. Options: renamed for TOML: [options."format/statements/multiline-semicolon"]. |
native_constant_invocationphp-cs-fixer | lint/performance/require-qualified-native-constant | Same. Options: renamed for TOML: [options."lint/performance/require-qualified-native-constant"]. |
native_function_casingphp-cs-fixer | format/casing/native-functions | Same. |
native_function_invocationphp-cs-fixer | lint/performance/require-qualified-native-function | Same. Options: renamed for TOML: [options."lint/performance/require-qualified-native-function"]. |
native_function_type_declaration_casingphp-cs-fixer | — | deprecated upstream; successor: native_type_declaration_casing |
native_type_declaration_casingphp-cs-fixer | format/casing/native-types | Merged with lowercase-type-hint. |
new_expression_parenthesesphp-cs-fixer | format/operators/new-expression-parentheses | Merged with NewMethodCallWithoutParentheses. Options: renamed for TOML: [options."format/operators/new-expression-parentheses"]. |
new_with_bracesphp-cs-fixer | — | deprecated upstream; successor: new_with_parentheses |
new_with_parenthesesphp-cs-fixer | format/operators/new-parentheses | Same. Options: renamed for TOML: [options."format/operators/new-parentheses"]. |
no_alias_functionsphp-cs-fixer | lint/style/no-alias-function | Merged with no-alias-function. Options: renamed for TOML: [options."lint/style/no-alias-function"]. |
no_alias_language_construct_callphp-cs-fixer | format/functions/no-alias-construct-call | Same. |
no_alternative_syntaxphp-cs-fixer | format/control-flow/no-alternative-syntax | Merged with AlternativeIfToBracket, no-alternative-syntax. Options: renamed for TOML: [options."format/control-flow/no-alternative-syntax"]. |
no_binary_stringphp-cs-fixer | format/strings/no-binary | Merged with no-redundant-binary-string-prefix. |
no_blank_lines_after_class_openingphp-cs-fixer | format/classes/no-blank-line-after-opening | Same. |
no_blank_lines_after_phpdocphp-cs-fixer | format/phpdoc/no-blank-line-after | Same. |
no_blank_lines_before_namespacephp-cs-fixer | — | deprecated upstream; successor: blank_lines_before_namespace |
no_break_commentphp-cs-fixer | format/control-flow/no-break-comment | Same. Options: renamed for TOML: [options."format/control-flow/no-break-comment"]. |
no_closing_tagphp-cs-fixer | format/tags/no-closing | Merged with no-closing-tag, no-php-tag-terminator, whitespace.fileEnd. |
no_empty_commentphp-cs-fixer | format/comments/no-empty | Merged with no-empty-comment. |
no_empty_phpdocphp-cs-fixer | format/phpdoc/no-empty | Same. |
no_empty_statementphp-cs-fixer | lint/statements/no-empty | Merged with no-noop. |
no_extra_blank_linesphp-cs-fixer | format/whitespace/no-extra-blank-lines | Same. Options: renamed for TOML: [options."format/whitespace/no-extra-blank-lines"]. |
no_homoglyph_namesphp-cs-fixer | lint/security/no-homoglyph-names | Same. |
no_leading_import_slashphp-cs-fixer | format/imports/no-leading-slash | Same. |
no_leading_namespace_whitespacephp-cs-fixer | format/imports/no-leading-namespace-whitespace | Same. |
no_mixed_echo_printphp-cs-fixer | format/statements/no-mixed-echo-print | Same. Options: renamed for TOML: [options."format/statements/no-mixed-echo-print"]. |
no_multiline_whitespace_around_double_arrowphp-cs-fixer | format/arrays/no-multiline-double-arrow | Same. |
no_multiple_statements_per_linephp-cs-fixer | format/statements/one-per-line | Same. |
no_null_property_initializationphp-cs-fixer | lint/classes/no-null-property-default | Merged with RemoveNullPropertyInitialization, no-null-property-init. |
no_php4_constructorphp-cs-fixer | lint/style/no-php4-constructor | Merged with no-legacy-constructor. |
no_redundant_readonly_propertyphp-cs-fixer | lint/classes/no-redundant-readonly | Merged with RemoveReadonlyPropertyVisibilityOnReadonlyClass, no-redundant-readonly. |
no_short_bool_castphp-cs-fixer | format/casts/no-short-bool | Merged with ReplaceMultipleBooleanNot, no-short-bool-cast. |
no_singleline_whitespace_before_semicolonsphp-cs-fixer | format/statements/no-space-before-semicolon | Same. |
no_space_around_double_colonphp-cs-fixer | format/operators/no-space-around-double-colon | Same. |
no_spaces_after_function_namephp-cs-fixer | format/functions/no-space-after-name | Same. |
no_spaces_around_offsetphp-cs-fixer | format/arrays/no-space-around-offset | Same. Options: renamed for TOML: [options."format/arrays/no-space-around-offset"]. |
no_spaces_inside_parenthesisphp-cs-fixer | — | deprecated upstream; successor: spaces_inside_parentheses |
no_superfluous_elseifphp-cs-fixer | lint/control-flow/no-superfluous-elseif | Same. |
no_superfluous_phpdoc_tagsphp-cs-fixer | lint/phpdoc/no-superfluous-tags | Same. Options: renamed for TOML: [options."lint/phpdoc/no-superfluous-tags"]. |
no_trailing_comma_in_list_callphp-cs-fixer | — | deprecated upstream; successor: no_trailing_comma_in_singleline |
no_trailing_comma_in_singlelinephp-cs-fixer | format/arrays/no-trailing-comma-single-line | Same. Options: renamed for TOML: [options."format/arrays/no-trailing-comma-single-line"]. |
no_trailing_comma_in_singleline_arrayphp-cs-fixer | — | deprecated upstream; successor: no_trailing_comma_in_singleline |
no_trailing_comma_in_singleline_function_callphp-cs-fixer | — | deprecated upstream; successor: no_trailing_comma_in_singleline |
no_trailing_whitespacephp-cs-fixer | format/whitespace/no-trailing | Same. |
no_trailing_whitespace_in_commentphp-cs-fixer | format/comments/no-trailing-whitespace | Merged with no-trailing-space. |
no_trailing_whitespace_in_stringphp-cs-fixer | lint/strings/no-trailing-whitespace-in-string | Same. |
no_unneeded_bracesphp-cs-fixer | format/control-flow/no-unneeded-braces | Merged with ReplaceBlockToItsStmts, no-redundant-block. Options: renamed for TOML: [options."format/control-flow/no-unneeded-braces"]. |
no_unneeded_control_parenthesesphp-cs-fixer | format/control-flow/no-unneeded-parentheses | Merged with no-redundant-parentheses. Options: renamed for TOML: [options."format/control-flow/no-unneeded-parentheses"]. |
no_unneeded_curly_bracesphp-cs-fixer | — | deprecated upstream; successor: no_unneeded_braces |
no_unneeded_final_methodphp-cs-fixer | lint/style/no-redundant-final | Merged with no-redundant-final. Options: renamed for TOML: [options."lint/style/no-redundant-final"]. |
no_unneeded_import_aliasphp-cs-fixer | format/imports/no-unneeded-alias | Merged with RemoveUselessAliasInUseStatement. |
no_unreachable_default_argument_valuephp-cs-fixer | lint/functions/no-unreachable-default-argument-value | Same. |
no_unset_castphp-cs-fixer | format/casts/no-unset | Same. |
no_unset_on_propertyphp-cs-fixer | lint/classes/no-unset-on-property | Same. |
no_unused_importsphp-cs-fixer | lint/imports/no-unused | Merged with no-redundant-use. |
no_useless_concat_operatorphp-cs-fixer | format/operators/no-useless-concat | Merged with no-redundant-string-concat. Options: renamed for TOML: [options."format/operators/no-useless-concat"]. |
no_useless_elsephp-cs-fixer | lint/control-flow/no-useless-else | Merged with no-redundant-else. |
no_useless_nullsafe_operatorphp-cs-fixer | lint/operators/no-useless-nullsafe | Same. |
no_useless_printfphp-cs-fixer | lint/style/no-useless-printf | Same. |
no_useless_returnphp-cs-fixer | lint/control-flow/no-useless-return | Same. |
no_useless_sprintfphp-cs-fixer | lint/style/no-useless-sprintf | Merged with UnwrapSprintfOneArgument. |
no_whitespace_before_comma_in_arrayphp-cs-fixer | format/arrays/no-space-before-comma | Same. Options: renamed for TOML: [options."format/arrays/no-space-before-comma"]. |
no_whitespace_in_blank_linephp-cs-fixer | format/whitespace/no-blank-line-whitespace | Same. |
no_whitespace_in_empty_arrayphp-cs-fixer | format/arrays/no-space-in-empty | Same. |
non_printable_characterphp-cs-fixer | lint/strings/no-non-printable-character | Same. Options: renamed for TOML: [options."lint/strings/no-non-printable-character"]. |
normalize_index_bracephp-cs-fixer | format/arrays/index-brace | Same. |
not_operator_with_spacephp-cs-fixer | format/operators/not-with-space | Same. |
not_operator_with_successor_spacephp-cs-fixer | format/operators/not-with-successor-space | Same. |
nullable_type_declarationphp-cs-fixer | format/types/nullable-syntax | Same. Options: renamed for TOML: [options."format/types/nullable-syntax"]. |
nullable_type_declaration_for_default_null_valuephp-cs-fixer | format/types/nullable-for-null-default | Merged with ExplicitNullableParamType, explicit-nullable-param, parameter.implicitlyNullable. Options: renamed for TOML: [options."format/types/nullable-for-null-default"]. |
numeric_literal_separatorphp-cs-fixer | format/statements/numeric-literal-separator | Merged with readable-literal. Options: renamed for TOML: [options."format/statements/numeric-literal-separator"]. |
object_operator_without_whitespacephp-cs-fixer | format/operators/no-space-around-arrow | Same. |
octal_notationphp-cs-fixer | format/statements/octal-notation | Merged with explicit-octal. |
operator_linebreakphp-cs-fixer | format/operators/linebreak | Same. Options: renamed for TOML: [options."format/operators/linebreak"]. |
ordered_attributesphp-cs-fixer | format/attributes/ordered | Same. Options: renamed for TOML: [options."format/attributes/ordered"]. |
ordered_class_elementsphp-cs-fixer | lint/classes/require-member-order | Same. Options: renamed for TOML: [options."lint/classes/require-member-order"]. |
ordered_importsphp-cs-fixer | format/imports/ordered | Same. Options: renamed for TOML: [options."format/imports/ordered"]. |
ordered_interfacesphp-cs-fixer | format/classes/ordered-interfaces | Same. Options: renamed for TOML: [options."format/classes/ordered-interfaces"]. |
ordered_traitsphp-cs-fixer | lint/style/require-ordered-traits | Same. Options: renamed for TOML: [options."lint/style/require-ordered-traits"]. |
ordered_typesphp-cs-fixer | format/types/ordered | Same. Options: renamed for TOML: [options."format/types/ordered"]. |
php_unit_assert_new_namesphp-cs-fixer | lint/phpunit/prefer-new-assertion-names | Same. |
php_unit_attributesphp-cs-fixer | lint/phpunit/prefer-attributes | Same. Options: renamed for TOML: [options."lint/phpunit/prefer-attributes"]. |
php_unit_constructphp-cs-fixer | lint/phpunit/prefer-specific-assertions | Merged with use-specific-assertions. Options: renamed for TOML: [options."lint/phpunit/prefer-specific-assertions"]. |
php_unit_data_provider_method_orderphp-cs-fixer | lint/phpunit/require-data-provider-order | Same. Options: renamed for TOML: [options."lint/phpunit/require-data-provider-order"]. |
php_unit_data_provider_namephp-cs-fixer | lint/phpunit/require-data-provider-naming | Same. Options: renamed for TOML: [options."lint/phpunit/require-data-provider-naming"]. |
php_unit_data_provider_return_typephp-cs-fixer | lint/phpunit/require-iterable-data-provider | Same. |
php_unit_data_provider_staticphp-cs-fixer | lint/phpunit/require-static-data-provider | Same. Options: renamed for TOML: [options."lint/phpunit/require-static-data-provider"]. |
php_unit_dedicate_assertphp-cs-fixer | lint/phpunit/prefer-dedicated-assertion | Same. Options: renamed for TOML: [options."lint/phpunit/prefer-dedicated-assertion"]. |
php_unit_dedicate_assert_internal_typephp-cs-fixer | lint/phpunit/no-assert-internal-type | Same. Options: renamed for TOML: [options."lint/phpunit/no-assert-internal-type"]. |
php_unit_expectationphp-cs-fixer | lint/phpunit/prefer-expect-exception | Same. Options: renamed for TOML: [options."lint/phpunit/prefer-expect-exception"]. |
php_unit_fqcn_annotationphp-cs-fixer | format/phpunit/fqcn-annotation | Same. |
php_unit_internal_classphp-cs-fixer | lint/phpunit/require-internal | Same. Options: renamed for TOML: [options."lint/phpunit/require-internal"]. |
php_unit_method_casingphp-cs-fixer | lint/phpunit/require-method-casing | Same. Options: renamed for TOML: [options."lint/phpunit/require-method-casing"]. |
php_unit_mockphp-cs-fixer | lint/phpunit/prefer-create-mock | Same. Options: renamed for TOML: [options."lint/phpunit/prefer-create-mock"]. |
php_unit_mock_short_will_returnphp-cs-fixer | lint/phpunit/prefer-short-will-return | Same. |
php_unit_namespacedphp-cs-fixer | lint/phpunit/prefer-namespaced | Same. Options: renamed for TOML: [options."lint/phpunit/prefer-namespaced"]. |
php_unit_no_expectation_annotationphp-cs-fixer | lint/phpunit/no-expected-exception-annotation | Same. Options: renamed for TOML: [options."lint/phpunit/no-expected-exception-annotation"]. |
php_unit_set_up_tear_down_visibilityphp-cs-fixer | lint/phpunit/require-protected-setup | Same. |
php_unit_size_classphp-cs-fixer | lint/phpunit/require-size | Same. Options: renamed for TOML: [options."lint/phpunit/require-size"]. |
php_unit_strictphp-cs-fixer | lint/phpunit/prefer-assert-same | Merged with AssertEqualsToSame, strict-assertions. Options: renamed for TOML: [options."lint/phpunit/prefer-assert-same"]. |
php_unit_test_annotationphp-cs-fixer | lint/phpunit/require-test-annotation-style | Same. Options: renamed for TOML: [options."lint/phpunit/require-test-annotation-style"]. |
php_unit_test_case_static_method_callsphp-cs-fixer | lint/phpunit/require-assertion-style | Merged with assertion-style. Options: renamed for TOML: [options."lint/phpunit/require-assertion-style"]. |
php_unit_test_class_requires_coversphp-cs-fixer | lint/phpunit/require-covers | Same. |
phpdoc_add_missing_param_annotationphp-cs-fixer | lint/phpdoc/add-missing-param | Same. Options: renamed for TOML: [options."lint/phpdoc/add-missing-param"]. |
phpdoc_alignphp-cs-fixer | format/phpdoc/align | Same. Options: renamed for TOML: [options."format/phpdoc/align"]. |
phpdoc_annotation_without_dotphp-cs-fixer | format/phpdoc/annotation-without-dot | Same. |
phpdoc_array_typephp-cs-fixer | lint/style/prefer-generic-array-phpdoc | Same. |
phpdoc_indentphp-cs-fixer | format/phpdoc/indent | Same. |
phpdoc_inline_tag_normalizerphp-cs-fixer | format/phpdoc/inline-tag | Same. Options: renamed for TOML: [options."format/phpdoc/inline-tag"]. |
phpdoc_line_spanphp-cs-fixer | format/phpdoc/line-span | Same. Options: renamed for TOML: [options."format/phpdoc/line-span"]. |
phpdoc_list_typephp-cs-fixer | lint/style/prefer-list-phpdoc | Same. |
phpdoc_no_accessphp-cs-fixer | lint/phpdoc/no-access | Same. |
phpdoc_no_alias_tagphp-cs-fixer | format/phpdoc/no-alias-tag | Same. Options: renamed for TOML: [options."format/phpdoc/no-alias-tag"]. |
phpdoc_no_duplicate_typesphp-cs-fixer | format/phpdoc/no-duplicate-types | Same. |
phpdoc_no_empty_returnphp-cs-fixer | lint/phpdoc/no-empty-return | Same. |
phpdoc_no_packagephp-cs-fixer | lint/phpdoc/no-package | Same. |
phpdoc_no_useless_inheritdocphp-cs-fixer | lint/phpdoc/no-useless-inheritdoc | Same. |
phpdoc_orderphp-cs-fixer | format/phpdoc/order | Same. Options: renamed for TOML: [options."format/phpdoc/order"]. |
phpdoc_order_by_valuephp-cs-fixer | format/phpdoc/order-by-value | Same. Options: renamed for TOML: [options."format/phpdoc/order-by-value"]. |
phpdoc_param_orderphp-cs-fixer | format/phpdoc/param-order | Same. |
phpdoc_readonly_class_comment_to_keywordphp-cs-fixer | lint/style/prefer-readonly-keyword | Same. |
phpdoc_return_self_referencephp-cs-fixer | format/phpdoc/return-self-reference | Same. Options: renamed for TOML: [options."format/phpdoc/return-self-reference"]. |
phpdoc_scalarphp-cs-fixer | format/phpdoc/scalar | Same. Options: renamed for TOML: [options."format/phpdoc/scalar"]. |
phpdoc_separationphp-cs-fixer | format/phpdoc/separation | Same. Options: renamed for TOML: [options."format/phpdoc/separation"]. |
phpdoc_single_line_var_spacingphp-cs-fixer | format/phpdoc/single-line-var-spacing | Same. |
phpdoc_summaryphp-cs-fixer | format/phpdoc/summary | Same. |
phpdoc_tag_casingphp-cs-fixer | format/phpdoc/tag-casing | Same. Options: renamed for TOML: [options."format/phpdoc/tag-casing"]. |
phpdoc_tag_no_named_argumentsphp-cs-fixer | lint/phpdoc/require-no-named-arguments | Same. Options: renamed for TOML: [options."lint/phpdoc/require-no-named-arguments"]. |
phpdoc_tag_typephp-cs-fixer | format/phpdoc/tag-type | Same. Options: renamed for TOML: [options."format/phpdoc/tag-type"]. |
phpdoc_to_commentphp-cs-fixer | lint/phpdoc/no-misplaced | Same. Options: renamed for TOML: [options."lint/phpdoc/no-misplaced"]. |
phpdoc_to_param_typephp-cs-fixer | lint/style/add-param-type-from-phpdoc | Same. Options: renamed for TOML: [options."lint/style/add-param-type-from-phpdoc"]. |
phpdoc_to_property_typephp-cs-fixer | lint/style/add-property-type-from-phpdoc | Same. Options: renamed for TOML: [options."lint/style/add-property-type-from-phpdoc"]. |
phpdoc_to_return_typephp-cs-fixer | lint/style/add-return-type-from-phpdoc | Same. Options: renamed for TOML: [options."lint/style/add-return-type-from-phpdoc"]. |
phpdoc_trimphp-cs-fixer | format/phpdoc/trim | Same. |
phpdoc_trim_consecutive_blank_line_separationphp-cs-fixer | format/phpdoc/trim-blank-lines | Same. |
phpdoc_typesphp-cs-fixer | format/phpdoc/types | Same. Options: renamed for TOML: [options."format/phpdoc/types"]. |
phpdoc_types_no_duplicatesphp-cs-fixer | — | deprecated upstream; successor: phpdoc_no_duplicate_types |
phpdoc_types_orderphp-cs-fixer | format/phpdoc/types-order | Same. Options: renamed for TOML: [options."format/phpdoc/types-order"]. |
phpdoc_var_annotation_correct_orderphp-cs-fixer | format/phpdoc/var-order | Same. |
phpdoc_var_without_namephp-cs-fixer | format/phpdoc/var-without-name | Same. |
pow_to_exponentiationphp-cs-fixer | lint/style/prefer-pow-operator | Same. |
protected_to_privatephp-cs-fixer | lint/classes/no-protected-in-final | Merged with no-protected-in-final. |
psr_autoloadingphp-cs-fixer | lint/classes/require-class-matches-file | Merged with file-name. Options: renamed for TOML: [options."lint/classes/require-class-matches-file"]. |
random_api_migrationphp-cs-fixer | lint/style/prefer-random-int | Same. Options: renamed for TOML: [options."lint/style/prefer-random-int"]. |
regular_callable_callphp-cs-fixer | lint/style/no-call-user-func | Same. |
return_assignmentphp-cs-fixer | lint/control-flow/no-return-assignment | Merged with SimplifyUselessVariable, inline-variable-return. Options: renamed for TOML: [options."lint/control-flow/no-return-assignment"]. |
return_to_yield_fromphp-cs-fixer | lint/control-flow/prefer-yield-from | Same. |
return_type_declarationphp-cs-fixer | format/functions/return-type-spacing | Same. Options: renamed for TOML: [options."format/functions/return-type-spacing"]. |
self_accessorphp-cs-fixer | lint/style/prefer-self-reference | Merged with prefer-self, prefer-self-return-type. |
self_static_accessorphp-cs-fixer | lint/classes/prefer-self-in-final | Merged with ConvertStaticToSelf, redundant-static. |
semicolon_after_instructionphp-cs-fixer | format/statements/semicolon-after-instruction | Same. |
set_type_to_castphp-cs-fixer | lint/style/prefer-cast-over-settype | Same. |
short_scalar_castphp-cs-fixer | format/casts/short-scalar | Merged with DeprecatedCastRule, deprecated-cast, cast.deprecated. |
simple_to_complex_string_variablephp-cs-fixer | format/strings/complex-variable | Same. |
simplified_if_returnphp-cs-fixer | lint/control-flow/prefer-bool-return | Merged with SimplifyIfReturnBool. |
simplified_null_returnphp-cs-fixer | lint/control-flow/prefer-bare-return | Same. |
single_blank_line_at_eofphp-cs-fixer | format/whitespace/final-newline | Same. |
single_blank_line_before_namespacephp-cs-fixer | — | deprecated upstream; successor: blank_lines_before_namespace |
single_class_element_per_statementphp-cs-fixer | format/classes/single-member-per-statement | Merged with SplitGroupedClassConstants, SplitGroupedProperties. Options: renamed for TOML: [options."format/classes/single-member-per-statement"]. |
single_import_per_statementphp-cs-fixer | format/imports/single-per-statement | Merged with SeparateMultiUseImports. Options: renamed for TOML: [options."format/imports/single-per-statement"]. |
single_line_after_importsphp-cs-fixer | format/imports/blank-line-after | Same. |
single_line_comment_spacingphp-cs-fixer | format/comments/single-line-spacing | Same. |
single_line_comment_stylephp-cs-fixer | format/comments/single-line-style | Merged with no-hash-comment. Options: renamed for TOML: [options."format/comments/single-line-style"]. |
single_line_empty_bodyphp-cs-fixer | format/statements/single-line-empty-body | Same. |
single_line_throwphp-cs-fixer | format/functions/single-line-throw | Same. |
single_quotephp-cs-fixer | format/strings/single-quote | Same. Options: renamed for TOML: [options."format/strings/single-quote"]. |
single_space_after_constructphp-cs-fixer | — | deprecated upstream; successor: single_space_around_construct |
single_space_around_constructphp-cs-fixer | format/statements/space-around-construct | Same. Options: renamed for TOML: [options."format/statements/space-around-construct"]. |
single_trait_insert_per_statementphp-cs-fixer | format/classes/single-trait-per-statement | Same. |
space_after_semicolonphp-cs-fixer | format/statements/space-after-semicolon | Same. Options: renamed for TOML: [options."format/statements/space-after-semicolon"]. |
spaces_inside_parenthesesphp-cs-fixer | format/whitespace/inside-parentheses | Same. Options: renamed for TOML: [options."format/whitespace/inside-parentheses"]. |
standardize_incrementphp-cs-fixer | format/operators/standardize-increment | Same. |
standardize_not_equalsphp-cs-fixer | format/operators/standardize-not-equals | Merged with CommonNotEqual. |
statement_indentationphp-cs-fixer | format/whitespace/statement-indentation | Same. Options: renamed for TOML: [options."format/whitespace/statement-indentation"]. |
static_lambdaphp-cs-fixer | lint/performance/prefer-static-closure | Merged with prefer-static-closure. |
static_private_methodphp-cs-fixer | lint/style/prefer-static-private-method | Same. |
strict_comparisonphp-cs-fixer | lint/types/no-loose-comparison | Merged with identity-comparison. |
strict_paramphp-cs-fixer | lint/types/require-strict-param | Merged with strict-behavior. |
string_implicit_backslashesphp-cs-fixer | format/strings/implicit-backslashes | Same. Options: renamed for TOML: [options."format/strings/implicit-backslashes"]. |
string_length_to_emptyphp-cs-fixer | lint/style/prefer-empty-string-compare | Merged with StrlenZeroToIdenticalEmptyString. |
string_line_endingphp-cs-fixer | lint/strings/require-string-line-ending | Same. |
stringable_for_to_stringphp-cs-fixer | lint/classes/add-stringable | Same. |
switch_case_semicolon_to_colonphp-cs-fixer | format/control-flow/switch-case-colon | Merged with ColonAfterSwitchCase, deprecated-switch-semicolon. |
switch_case_spacephp-cs-fixer | format/control-flow/switch-case-space | Same. |
switch_continue_to_breakphp-cs-fixer | lint/control-flow/no-switch-continue | Merged with switch-continue-to-break. |
ternary_operator_spacesphp-cs-fixer | format/operators/ternary-spacing | Same. |
ternary_to_elvis_operatorphp-cs-fixer | lint/style/prefer-short-ternary | Same. |
ternary_to_null_coalescingphp-cs-fixer | lint/operators/prefer-coalesce | Same. |
trailing_comma_in_multilinephp-cs-fixer | format/arrays/trailing-comma-multiline | Same. Options: renamed for TOML: [options."format/arrays/trailing-comma-multiline"]. |
trim_array_spacesphp-cs-fixer | format/arrays/trim-spaces | Same. |
type_declaration_spacesphp-cs-fixer | format/types/declaration-spacing | Same. Options: renamed for TOML: [options."format/types/declaration-spacing"]. |
types_spacesphp-cs-fixer | format/types/union-spacing | Same. Options: renamed for TOML: [options."format/types/union-spacing"]. |
unary_operator_spacesphp-cs-fixer | format/operators/unary-spacing | Same. Options: renamed for TOML: [options."format/operators/unary-spacing"]. |
use_arrow_functionsphp-cs-fixer | lint/style/prefer-arrow-function | Merged with prefer-arrow-function. |
visibility_requiredphp-cs-fixer | — | deprecated upstream; successor: modifier_keywords |
void_returnphp-cs-fixer | lint/types/add-void-return-type | Same. Options: renamed for TOML: [options."lint/types/add-void-return-type"]. |
whitespace_after_comma_in_arrayphp-cs-fixer | format/arrays/space-after-comma | Same. Options: renamed for TOML: [options."format/arrays/space-after-comma"]. |
yield_from_array_to_yieldsphp-cs-fixer | lint/style/no-redundant-yield-from | Merged with no-redundant-yield-from. |
yoda_stylephp-cs-fixer | format/control-flow/yoda | Merged with yoda-conditions. Options: renamed for TOML: [options."format/control-flow/yoda"]. |
Unsupported rules
Doctrine rules: out of scope (Laravel-first); migrate lists them
doctrine_annotation_array_assignment, doctrine_annotation_braces, doctrine_annotation_indentation, doctrine_annotation_spaces.
deprecated upstream; successor: blank_lines_before_namespace
no_blank_lines_before_namespace, single_blank_line_before_namespace.
deprecated upstream; successor: braces_position
deprecated upstream; successor: compact_nullable_type_declaration
deprecated upstream; successor: modifier_keywords
deprecated upstream; successor: native_type_declaration_casing
native_function_type_declaration_casing.
deprecated upstream; successor: new_with_parentheses
deprecated upstream; successor: no_trailing_comma_in_singleline
no_trailing_comma_in_list_call, no_trailing_comma_in_singleline_array, no_trailing_comma_in_singleline_function_call.