Skip to content
Esc
↑↓navigate↵open⌘Jpreview
On this page

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 namePun ruleNotes
align_multiline_commentphp-cs-fixerformat/comments/align-multilineSame. Options: renamed for TOML: [options."format/comments/align-multiline"].
array_indentationphp-cs-fixerformat/arrays/indentationSame.
array_pushphp-cs-fixerlint/style/no-array-pushMerged with ChangeArrayPushToArrayAssign.
array_syntaxphp-cs-fixerformat/arrays/syntaxMerged with array-style. Options: renamed for TOML: [options."format/arrays/syntax"].
assign_null_coalescing_to_coalesce_equalphp-cs-fixerlint/operators/prefer-coalesce-assignSame.
attribute_block_no_spacesphp-cs-fixerformat/attributes/no-block-spacesSame.
attribute_empty_parenthesesphp-cs-fixerformat/attributes/empty-parenthesesSame. Options: renamed for TOML: [options."format/attributes/empty-parentheses"].
backtick_to_shell_execphp-cs-fixerformat/functions/backtick-to-shell-execMerged with ShellExecFunctionCallOverBackticks, BacktickRule, DisallowedBacktickRule and 4 others (see the rule's Replaces section).
binary_operator_spacesphp-cs-fixerformat/operators/binary-spacingSame. Options: renamed for TOML: [options."format/operators/binary-spacing"].
blank_line_after_namespacephp-cs-fixerformat/imports/blank-line-after-namespaceSame.
blank_line_after_opening_tagphp-cs-fixerformat/tags/blank-line-after-openingSame.
blank_line_before_statementphp-cs-fixerformat/statements/blank-line-beforeSame. Options: renamed for TOML: [options."format/statements/blank-line-before"].
blank_line_between_import_groupsphp-cs-fixerformat/imports/blank-line-between-groupsSame.
blank_lines_before_namespacephp-cs-fixerformat/imports/blank-lines-before-namespaceSame. 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-fixerformat/statements/braces-positionSame. Options: renamed for TOML: [options."format/statements/braces-position"].
cast_spacesphp-cs-fixerformat/casts/spacingSame. Options: renamed for TOML: [options."format/casts/spacing"].
class_attributes_separationphp-cs-fixerformat/classes/member-separationMerged with NewlineBetweenClassLikeStmts. Options: renamed for TOML: [options."format/classes/member-separation"].
class_definitionphp-cs-fixerformat/classes/definitionSame. Options: renamed for TOML: [options."format/classes/definition"].
class_keywordphp-cs-fixerlint/style/prefer-class-constantMerged with StringClassNameToClassConstant, UseClassKeywordForClassNameResolution, no-literal-namespace-string.
class_keyword_removephp-cs-fixer—deprecated upstream; successor: none (removed)
class_reference_name_casingphp-cs-fixerformat/casing/class-referenceSame.
clean_namespacephp-cs-fixerformat/imports/clean-namespaceSame.
combine_consecutive_issetsphp-cs-fixerlint/control-flow/prefer-combined-issetMerged with combine-consecutive-issets.
combine_consecutive_unsetsphp-cs-fixerlint/control-flow/prefer-combined-unsetSame.
combine_nested_dirnamephp-cs-fixerlint/style/prefer-dirname-levelsSame.
comment_to_phpdocphp-cs-fixerlint/style/prefer-phpdoc-commentSame. Options: renamed for TOML: [options."lint/style/prefer-phpdoc-comment"].
compact_nullable_type_declarationphp-cs-fixerformat/types/compact-nullableSame.
compact_nullable_typehintphp-cs-fixer—deprecated upstream; successor: compact_nullable_type_declaration
concat_spacephp-cs-fixerformat/operators/concat-spacingSame. Options: renamed for TOML: [options."format/operators/concat-spacing"].
constant_casephp-cs-fixerformat/casing/constantsSame. Options: renamed for TOML: [options."format/casing/constants"].
control_structure_bracesphp-cs-fixerformat/control-flow/bracesMerged with CompleteMissingIfElseBracket, block-statement.
control_structure_continuation_positionphp-cs-fixerformat/control-flow/continuation-positionSame. 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-fixerlint/style/require-create-from-format-bangSame.
date_time_immutablephp-cs-fixerlint/style/prefer-date-time-immutableSame.
declare_equal_normalizephp-cs-fixerformat/statements/declare-equalSame. Options: renamed for TOML: [options."format/statements/declare-equal"].
declare_parenthesesphp-cs-fixerformat/statements/declare-parenthesesSame.
declare_strict_typesphp-cs-fixerlint/statements/require-strict-typesMerged with strict-types. Options: renamed for TOML: [options."lint/statements/require-strict-types"].
dir_constantphp-cs-fixerlint/style/prefer-dir-constantSame.
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-fixerformat/tags/echo-syntaxSame. Options: renamed for TOML: [options."format/tags/echo-syntax"].
elseifphp-cs-fixerformat/control-flow/elseifSame.
empty_loop_bodyphp-cs-fixerformat/control-flow/empty-loop-bodySame. Options: renamed for TOML: [options."format/control-flow/empty-loop-body"].
empty_loop_conditionphp-cs-fixerformat/control-flow/empty-loop-conditionSame. Options: renamed for TOML: [options."format/control-flow/empty-loop-condition"].
encodingphp-cs-fixerformat/whitespace/encodingMerged with FileWhitespaceRule, whitespace.bom.
ereg_to_pregphp-cs-fixerlint/style/no-eregSame.
error_suppressionphp-cs-fixerlint/operators/no-error-suppressionMerged 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-fixerformat/statements/explicit-indirect-variableSame.
explicit_string_variablephp-cs-fixerformat/strings/explicit-variableMerged with braced-string-interpolation.
final_classphp-cs-fixerlint/style/require-final-classSame.
final_internal_classphp-cs-fixerlint/style/require-final-internal-classSame. Options: renamed for TOML: [options."lint/style/require-final-internal-class"].
final_public_method_for_abstract_classphp-cs-fixerlint/style/require-final-public-methodSame.
fopen_flag_orderphp-cs-fixerlint/style/require-fopen-flag-orderSame.
fopen_flagsphp-cs-fixerlint/style/require-fopen-binary-flagSame. Options: renamed for TOML: [options."lint/style/require-fopen-binary-flag"].
full_opening_tagphp-cs-fixerformat/tags/full-openingMerged with no-short-opening-tag.
fully_qualified_strict_typesphp-cs-fixerformat/imports/fully-qualified-strict-typesSame. Options: renamed for TOML: [options."format/imports/fully-qualified-strict-types"].
function_declarationphp-cs-fixerformat/functions/declarationSame. Options: renamed for TOML: [options."format/functions/declaration"].
function_to_constantphp-cs-fixerlint/refactor/prefer-constantSame. Options: renamed for TOML: [options."lint/refactor/prefer-constant"].
function_typehint_spacephp-cs-fixer—deprecated upstream; successor: type_declaration_spaces
general_attribute_removephp-cs-fixerlint/refactor/remove-attributeSame. Options: renamed for TOML: [options."lint/refactor/remove-attribute"].
general_phpdoc_annotation_removephp-cs-fixerlint/refactor/remove-phpdoc-annotationSame. Options: renamed for TOML: [options."lint/refactor/remove-phpdoc-annotation"].
general_phpdoc_tag_renamephp-cs-fixerlint/refactor/rename-phpdoc-tagSame. Options: renamed for TOML: [options."lint/refactor/rename-phpdoc-tag"].
get_class_to_class_keywordphp-cs-fixerlint/style/prefer-class-keyword-on-objectSame.
global_namespace_importphp-cs-fixerformat/imports/global-namespaceMerged 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-fixerformat/imports/groupSame. Options: renamed for TOML: [options."format/imports/group"].
header_commentphp-cs-fixerformat/comments/headerSame. Options: renamed for TOML: [options."format/comments/header"].
heredoc_closing_markerphp-cs-fixerformat/strings/heredoc-closing-markerSame. Options: renamed for TOML: [options."format/strings/heredoc-closing-marker"].
heredoc_indentationphp-cs-fixerformat/strings/heredoc-indentationSame. Options: renamed for TOML: [options."format/strings/heredoc-indentation"].
heredoc_to_nowdocphp-cs-fixerformat/strings/heredoc-to-nowdocSame.
implode_callphp-cs-fixerlint/style/require-implode-separatorSame.
includephp-cs-fixerformat/control-flow/includeSame.
increment_stylephp-cs-fixerformat/operators/increment-styleMerged with prefer-pre-increment. Options: renamed for TOML: [options."format/operators/increment-style"].
indentation_typephp-cs-fixerformat/whitespace/indentation-typeSame.
integer_literal_casephp-cs-fixerformat/casing/integer-literalsSame.
is_nullphp-cs-fixerlint/style/no-is-nullMerged with no-is-null.
lambda_not_used_importphp-cs-fixerlint/functions/no-unused-closure-useMerged with RemoveUnusedClosureVariableUse, UnusedClosureUsesRule, no-unused-closure-capture and 2 others (see the rule's Replaces section).
line_endingphp-cs-fixerformat/whitespace/line-endingSame.
linebreak_after_opening_tagphp-cs-fixerformat/tags/linebreak-after-openingSame.
list_syntaxphp-cs-fixerformat/arrays/list-syntaxSame. Options: renamed for TOML: [options."format/arrays/list-syntax"].
logical_operatorsphp-cs-fixerlint/operators/no-and-or-keywordsMerged with LogicalToBoolean.
long_to_shorthand_operatorphp-cs-fixerlint/style/prefer-compound-assignmentMerged with CombinedAssign, use-compound-assignment.
lowercase_castphp-cs-fixerformat/casts/lowercaseSame.
lowercase_keywordsphp-cs-fixerformat/casing/keywordsMerged with lowercase-keyword.
lowercase_static_referencephp-cs-fixerformat/casing/static-referenceSame.
magic_constant_casingphp-cs-fixerformat/casing/magic-constantsSame.
magic_method_casingphp-cs-fixerformat/casing/magic-methodsSame.
mb_str_functionsphp-cs-fixerlint/strings/prefer-mb-functionsSame.
method_argument_spacephp-cs-fixerformat/functions/argument-spacingSame. Options: renamed for TOML: [options."format/functions/argument-spacing"].
method_chaining_indentationphp-cs-fixerformat/functions/chain-indentationSame.
modern_serialization_methodsphp-cs-fixerlint/style/no-sleep-wakeupMerged with SleepToSerialize, WakeupToUnserialize.
modernize_strposphp-cs-fixerlint/style/prefer-str-containsMerged with str-contains, str-starts-with. Options: renamed for TOML: [options."lint/style/prefer-str-contains"].
modernize_types_castingphp-cs-fixerlint/style/prefer-cast-over-intvalSame.
modifier_keywordsphp-cs-fixerformat/classes/modifier-keywordsMerged with VarToPublicProperty. Options: renamed for TOML: [options."format/classes/modifier-keywords"].
multiline_comment_opening_closingphp-cs-fixerformat/comments/multiline-delimitersSame.
multiline_promoted_propertiesphp-cs-fixerformat/classes/multiline-promoted-propertiesSame. Options: renamed for TOML: [options."format/classes/multiline-promoted-properties"].
multiline_string_to_heredocphp-cs-fixerformat/strings/multiline-to-heredocSame.
multiline_whitespace_before_semicolonsphp-cs-fixerformat/statements/multiline-semicolonSame. Options: renamed for TOML: [options."format/statements/multiline-semicolon"].
native_constant_invocationphp-cs-fixerlint/performance/require-qualified-native-constantSame. Options: renamed for TOML: [options."lint/performance/require-qualified-native-constant"].
native_function_casingphp-cs-fixerformat/casing/native-functionsSame.
native_function_invocationphp-cs-fixerlint/performance/require-qualified-native-functionSame. 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-fixerformat/casing/native-typesMerged with lowercase-type-hint.
new_expression_parenthesesphp-cs-fixerformat/operators/new-expression-parenthesesMerged 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-fixerformat/operators/new-parenthesesSame. Options: renamed for TOML: [options."format/operators/new-parentheses"].
no_alias_functionsphp-cs-fixerlint/style/no-alias-functionMerged with no-alias-function. Options: renamed for TOML: [options."lint/style/no-alias-function"].
no_alias_language_construct_callphp-cs-fixerformat/functions/no-alias-construct-callSame.
no_alternative_syntaxphp-cs-fixerformat/control-flow/no-alternative-syntaxMerged with AlternativeIfToBracket, no-alternative-syntax. Options: renamed for TOML: [options."format/control-flow/no-alternative-syntax"].
no_binary_stringphp-cs-fixerformat/strings/no-binaryMerged with no-redundant-binary-string-prefix.
no_blank_lines_after_class_openingphp-cs-fixerformat/classes/no-blank-line-after-openingSame.
no_blank_lines_after_phpdocphp-cs-fixerformat/phpdoc/no-blank-line-afterSame.
no_blank_lines_before_namespacephp-cs-fixer—deprecated upstream; successor: blank_lines_before_namespace
no_break_commentphp-cs-fixerformat/control-flow/no-break-commentSame. Options: renamed for TOML: [options."format/control-flow/no-break-comment"].
no_closing_tagphp-cs-fixerformat/tags/no-closingMerged with no-closing-tag, no-php-tag-terminator, whitespace.fileEnd.
no_empty_commentphp-cs-fixerformat/comments/no-emptyMerged with no-empty-comment.
no_empty_phpdocphp-cs-fixerformat/phpdoc/no-emptySame.
no_empty_statementphp-cs-fixerlint/statements/no-emptyMerged with no-noop.
no_extra_blank_linesphp-cs-fixerformat/whitespace/no-extra-blank-linesSame. Options: renamed for TOML: [options."format/whitespace/no-extra-blank-lines"].
no_homoglyph_namesphp-cs-fixerlint/security/no-homoglyph-namesSame.
no_leading_import_slashphp-cs-fixerformat/imports/no-leading-slashSame.
no_leading_namespace_whitespacephp-cs-fixerformat/imports/no-leading-namespace-whitespaceSame.
no_mixed_echo_printphp-cs-fixerformat/statements/no-mixed-echo-printSame. Options: renamed for TOML: [options."format/statements/no-mixed-echo-print"].
no_multiline_whitespace_around_double_arrowphp-cs-fixerformat/arrays/no-multiline-double-arrowSame.
no_multiple_statements_per_linephp-cs-fixerformat/statements/one-per-lineSame.
no_null_property_initializationphp-cs-fixerlint/classes/no-null-property-defaultMerged with RemoveNullPropertyInitialization, no-null-property-init.
no_php4_constructorphp-cs-fixerlint/style/no-php4-constructorMerged with no-legacy-constructor.
no_redundant_readonly_propertyphp-cs-fixerlint/classes/no-redundant-readonlyMerged with RemoveReadonlyPropertyVisibilityOnReadonlyClass, no-redundant-readonly.
no_short_bool_castphp-cs-fixerformat/casts/no-short-boolMerged with ReplaceMultipleBooleanNot, no-short-bool-cast.
no_singleline_whitespace_before_semicolonsphp-cs-fixerformat/statements/no-space-before-semicolonSame.
no_space_around_double_colonphp-cs-fixerformat/operators/no-space-around-double-colonSame.
no_spaces_after_function_namephp-cs-fixerformat/functions/no-space-after-nameSame.
no_spaces_around_offsetphp-cs-fixerformat/arrays/no-space-around-offsetSame. 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-fixerlint/control-flow/no-superfluous-elseifSame.
no_superfluous_phpdoc_tagsphp-cs-fixerlint/phpdoc/no-superfluous-tagsSame. 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-fixerformat/arrays/no-trailing-comma-single-lineSame. 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-fixerformat/whitespace/no-trailingSame.
no_trailing_whitespace_in_commentphp-cs-fixerformat/comments/no-trailing-whitespaceMerged with no-trailing-space.
no_trailing_whitespace_in_stringphp-cs-fixerlint/strings/no-trailing-whitespace-in-stringSame.
no_unneeded_bracesphp-cs-fixerformat/control-flow/no-unneeded-bracesMerged with ReplaceBlockToItsStmts, no-redundant-block. Options: renamed for TOML: [options."format/control-flow/no-unneeded-braces"].
no_unneeded_control_parenthesesphp-cs-fixerformat/control-flow/no-unneeded-parenthesesMerged 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-fixerlint/style/no-redundant-finalMerged with no-redundant-final. Options: renamed for TOML: [options."lint/style/no-redundant-final"].
no_unneeded_import_aliasphp-cs-fixerformat/imports/no-unneeded-aliasMerged with RemoveUselessAliasInUseStatement.
no_unreachable_default_argument_valuephp-cs-fixerlint/functions/no-unreachable-default-argument-valueSame.
no_unset_castphp-cs-fixerformat/casts/no-unsetSame.
no_unset_on_propertyphp-cs-fixerlint/classes/no-unset-on-propertySame.
no_unused_importsphp-cs-fixerlint/imports/no-unusedMerged with no-redundant-use.
no_useless_concat_operatorphp-cs-fixerformat/operators/no-useless-concatMerged with no-redundant-string-concat. Options: renamed for TOML: [options."format/operators/no-useless-concat"].
no_useless_elsephp-cs-fixerlint/control-flow/no-useless-elseMerged with no-redundant-else.
no_useless_nullsafe_operatorphp-cs-fixerlint/operators/no-useless-nullsafeSame.
no_useless_printfphp-cs-fixerlint/style/no-useless-printfSame.
no_useless_returnphp-cs-fixerlint/control-flow/no-useless-returnSame.
no_useless_sprintfphp-cs-fixerlint/style/no-useless-sprintfMerged with UnwrapSprintfOneArgument.
no_whitespace_before_comma_in_arrayphp-cs-fixerformat/arrays/no-space-before-commaSame. Options: renamed for TOML: [options."format/arrays/no-space-before-comma"].
no_whitespace_in_blank_linephp-cs-fixerformat/whitespace/no-blank-line-whitespaceSame.
no_whitespace_in_empty_arrayphp-cs-fixerformat/arrays/no-space-in-emptySame.
non_printable_characterphp-cs-fixerlint/strings/no-non-printable-characterSame. Options: renamed for TOML: [options."lint/strings/no-non-printable-character"].
normalize_index_bracephp-cs-fixerformat/arrays/index-braceSame.
not_operator_with_spacephp-cs-fixerformat/operators/not-with-spaceSame.
not_operator_with_successor_spacephp-cs-fixerformat/operators/not-with-successor-spaceSame.
nullable_type_declarationphp-cs-fixerformat/types/nullable-syntaxSame. Options: renamed for TOML: [options."format/types/nullable-syntax"].
nullable_type_declaration_for_default_null_valuephp-cs-fixerformat/types/nullable-for-null-defaultMerged with ExplicitNullableParamType, explicit-nullable-param, parameter.implicitlyNullable. Options: renamed for TOML: [options."format/types/nullable-for-null-default"].
numeric_literal_separatorphp-cs-fixerformat/statements/numeric-literal-separatorMerged with readable-literal. Options: renamed for TOML: [options."format/statements/numeric-literal-separator"].
object_operator_without_whitespacephp-cs-fixerformat/operators/no-space-around-arrowSame.
octal_notationphp-cs-fixerformat/statements/octal-notationMerged with explicit-octal.
operator_linebreakphp-cs-fixerformat/operators/linebreakSame. Options: renamed for TOML: [options."format/operators/linebreak"].
ordered_attributesphp-cs-fixerformat/attributes/orderedSame. Options: renamed for TOML: [options."format/attributes/ordered"].
ordered_class_elementsphp-cs-fixerlint/classes/require-member-orderSame. Options: renamed for TOML: [options."lint/classes/require-member-order"].
ordered_importsphp-cs-fixerformat/imports/orderedSame. Options: renamed for TOML: [options."format/imports/ordered"].
ordered_interfacesphp-cs-fixerformat/classes/ordered-interfacesSame. Options: renamed for TOML: [options."format/classes/ordered-interfaces"].
ordered_traitsphp-cs-fixerlint/style/require-ordered-traitsSame. Options: renamed for TOML: [options."lint/style/require-ordered-traits"].
ordered_typesphp-cs-fixerformat/types/orderedSame. Options: renamed for TOML: [options."format/types/ordered"].
php_unit_assert_new_namesphp-cs-fixerlint/phpunit/prefer-new-assertion-namesSame.
php_unit_attributesphp-cs-fixerlint/phpunit/prefer-attributesSame. Options: renamed for TOML: [options."lint/phpunit/prefer-attributes"].
php_unit_constructphp-cs-fixerlint/phpunit/prefer-specific-assertionsMerged with use-specific-assertions. Options: renamed for TOML: [options."lint/phpunit/prefer-specific-assertions"].
php_unit_data_provider_method_orderphp-cs-fixerlint/phpunit/require-data-provider-orderSame. Options: renamed for TOML: [options."lint/phpunit/require-data-provider-order"].
php_unit_data_provider_namephp-cs-fixerlint/phpunit/require-data-provider-namingSame. Options: renamed for TOML: [options."lint/phpunit/require-data-provider-naming"].
php_unit_data_provider_return_typephp-cs-fixerlint/phpunit/require-iterable-data-providerSame.
php_unit_data_provider_staticphp-cs-fixerlint/phpunit/require-static-data-providerSame. Options: renamed for TOML: [options."lint/phpunit/require-static-data-provider"].
php_unit_dedicate_assertphp-cs-fixerlint/phpunit/prefer-dedicated-assertionSame. Options: renamed for TOML: [options."lint/phpunit/prefer-dedicated-assertion"].
php_unit_dedicate_assert_internal_typephp-cs-fixerlint/phpunit/no-assert-internal-typeSame. Options: renamed for TOML: [options."lint/phpunit/no-assert-internal-type"].
php_unit_expectationphp-cs-fixerlint/phpunit/prefer-expect-exceptionSame. Options: renamed for TOML: [options."lint/phpunit/prefer-expect-exception"].
php_unit_fqcn_annotationphp-cs-fixerformat/phpunit/fqcn-annotationSame.
php_unit_internal_classphp-cs-fixerlint/phpunit/require-internalSame. Options: renamed for TOML: [options."lint/phpunit/require-internal"].
php_unit_method_casingphp-cs-fixerlint/phpunit/require-method-casingSame. Options: renamed for TOML: [options."lint/phpunit/require-method-casing"].
php_unit_mockphp-cs-fixerlint/phpunit/prefer-create-mockSame. Options: renamed for TOML: [options."lint/phpunit/prefer-create-mock"].
php_unit_mock_short_will_returnphp-cs-fixerlint/phpunit/prefer-short-will-returnSame.
php_unit_namespacedphp-cs-fixerlint/phpunit/prefer-namespacedSame. Options: renamed for TOML: [options."lint/phpunit/prefer-namespaced"].
php_unit_no_expectation_annotationphp-cs-fixerlint/phpunit/no-expected-exception-annotationSame. Options: renamed for TOML: [options."lint/phpunit/no-expected-exception-annotation"].
php_unit_set_up_tear_down_visibilityphp-cs-fixerlint/phpunit/require-protected-setupSame.
php_unit_size_classphp-cs-fixerlint/phpunit/require-sizeSame. Options: renamed for TOML: [options."lint/phpunit/require-size"].
php_unit_strictphp-cs-fixerlint/phpunit/prefer-assert-sameMerged with AssertEqualsToSame, strict-assertions. Options: renamed for TOML: [options."lint/phpunit/prefer-assert-same"].
php_unit_test_annotationphp-cs-fixerlint/phpunit/require-test-annotation-styleSame. Options: renamed for TOML: [options."lint/phpunit/require-test-annotation-style"].
php_unit_test_case_static_method_callsphp-cs-fixerlint/phpunit/require-assertion-styleMerged with assertion-style. Options: renamed for TOML: [options."lint/phpunit/require-assertion-style"].
php_unit_test_class_requires_coversphp-cs-fixerlint/phpunit/require-coversSame.
phpdoc_add_missing_param_annotationphp-cs-fixerlint/phpdoc/add-missing-paramSame. Options: renamed for TOML: [options."lint/phpdoc/add-missing-param"].
phpdoc_alignphp-cs-fixerformat/phpdoc/alignSame. Options: renamed for TOML: [options."format/phpdoc/align"].
phpdoc_annotation_without_dotphp-cs-fixerformat/phpdoc/annotation-without-dotSame.
phpdoc_array_typephp-cs-fixerlint/style/prefer-generic-array-phpdocSame.
phpdoc_indentphp-cs-fixerformat/phpdoc/indentSame.
phpdoc_inline_tag_normalizerphp-cs-fixerformat/phpdoc/inline-tagSame. Options: renamed for TOML: [options."format/phpdoc/inline-tag"].
phpdoc_line_spanphp-cs-fixerformat/phpdoc/line-spanSame. Options: renamed for TOML: [options."format/phpdoc/line-span"].
phpdoc_list_typephp-cs-fixerlint/style/prefer-list-phpdocSame.
phpdoc_no_accessphp-cs-fixerlint/phpdoc/no-accessSame.
phpdoc_no_alias_tagphp-cs-fixerformat/phpdoc/no-alias-tagSame. Options: renamed for TOML: [options."format/phpdoc/no-alias-tag"].
phpdoc_no_duplicate_typesphp-cs-fixerformat/phpdoc/no-duplicate-typesSame.
phpdoc_no_empty_returnphp-cs-fixerlint/phpdoc/no-empty-returnSame.
phpdoc_no_packagephp-cs-fixerlint/phpdoc/no-packageSame.
phpdoc_no_useless_inheritdocphp-cs-fixerlint/phpdoc/no-useless-inheritdocSame.
phpdoc_orderphp-cs-fixerformat/phpdoc/orderSame. Options: renamed for TOML: [options."format/phpdoc/order"].
phpdoc_order_by_valuephp-cs-fixerformat/phpdoc/order-by-valueSame. Options: renamed for TOML: [options."format/phpdoc/order-by-value"].
phpdoc_param_orderphp-cs-fixerformat/phpdoc/param-orderSame.
phpdoc_readonly_class_comment_to_keywordphp-cs-fixerlint/style/prefer-readonly-keywordSame.
phpdoc_return_self_referencephp-cs-fixerformat/phpdoc/return-self-referenceSame. Options: renamed for TOML: [options."format/phpdoc/return-self-reference"].
phpdoc_scalarphp-cs-fixerformat/phpdoc/scalarSame. Options: renamed for TOML: [options."format/phpdoc/scalar"].
phpdoc_separationphp-cs-fixerformat/phpdoc/separationSame. Options: renamed for TOML: [options."format/phpdoc/separation"].
phpdoc_single_line_var_spacingphp-cs-fixerformat/phpdoc/single-line-var-spacingSame.
phpdoc_summaryphp-cs-fixerformat/phpdoc/summarySame.
phpdoc_tag_casingphp-cs-fixerformat/phpdoc/tag-casingSame. Options: renamed for TOML: [options."format/phpdoc/tag-casing"].
phpdoc_tag_no_named_argumentsphp-cs-fixerlint/phpdoc/require-no-named-argumentsSame. Options: renamed for TOML: [options."lint/phpdoc/require-no-named-arguments"].
phpdoc_tag_typephp-cs-fixerformat/phpdoc/tag-typeSame. Options: renamed for TOML: [options."format/phpdoc/tag-type"].
phpdoc_to_commentphp-cs-fixerlint/phpdoc/no-misplacedSame. Options: renamed for TOML: [options."lint/phpdoc/no-misplaced"].
phpdoc_to_param_typephp-cs-fixerlint/style/add-param-type-from-phpdocSame. Options: renamed for TOML: [options."lint/style/add-param-type-from-phpdoc"].
phpdoc_to_property_typephp-cs-fixerlint/style/add-property-type-from-phpdocSame. Options: renamed for TOML: [options."lint/style/add-property-type-from-phpdoc"].
phpdoc_to_return_typephp-cs-fixerlint/style/add-return-type-from-phpdocSame. Options: renamed for TOML: [options."lint/style/add-return-type-from-phpdoc"].
phpdoc_trimphp-cs-fixerformat/phpdoc/trimSame.
phpdoc_trim_consecutive_blank_line_separationphp-cs-fixerformat/phpdoc/trim-blank-linesSame.
phpdoc_typesphp-cs-fixerformat/phpdoc/typesSame. 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-fixerformat/phpdoc/types-orderSame. Options: renamed for TOML: [options."format/phpdoc/types-order"].
phpdoc_var_annotation_correct_orderphp-cs-fixerformat/phpdoc/var-orderSame.
phpdoc_var_without_namephp-cs-fixerformat/phpdoc/var-without-nameSame.
pow_to_exponentiationphp-cs-fixerlint/style/prefer-pow-operatorSame.
protected_to_privatephp-cs-fixerlint/classes/no-protected-in-finalMerged with no-protected-in-final.
psr_autoloadingphp-cs-fixerlint/classes/require-class-matches-fileMerged with file-name. Options: renamed for TOML: [options."lint/classes/require-class-matches-file"].
random_api_migrationphp-cs-fixerlint/style/prefer-random-intSame. Options: renamed for TOML: [options."lint/style/prefer-random-int"].
regular_callable_callphp-cs-fixerlint/style/no-call-user-funcSame.
return_assignmentphp-cs-fixerlint/control-flow/no-return-assignmentMerged with SimplifyUselessVariable, inline-variable-return. Options: renamed for TOML: [options."lint/control-flow/no-return-assignment"].
return_to_yield_fromphp-cs-fixerlint/control-flow/prefer-yield-fromSame.
return_type_declarationphp-cs-fixerformat/functions/return-type-spacingSame. Options: renamed for TOML: [options."format/functions/return-type-spacing"].
self_accessorphp-cs-fixerlint/style/prefer-self-referenceMerged with prefer-self, prefer-self-return-type.
self_static_accessorphp-cs-fixerlint/classes/prefer-self-in-finalMerged with ConvertStaticToSelf, redundant-static.
semicolon_after_instructionphp-cs-fixerformat/statements/semicolon-after-instructionSame.
set_type_to_castphp-cs-fixerlint/style/prefer-cast-over-settypeSame.
short_scalar_castphp-cs-fixerformat/casts/short-scalarMerged with DeprecatedCastRule, deprecated-cast, cast.deprecated.
simple_to_complex_string_variablephp-cs-fixerformat/strings/complex-variableSame.
simplified_if_returnphp-cs-fixerlint/control-flow/prefer-bool-returnMerged with SimplifyIfReturnBool.
simplified_null_returnphp-cs-fixerlint/control-flow/prefer-bare-returnSame.
single_blank_line_at_eofphp-cs-fixerformat/whitespace/final-newlineSame.
single_blank_line_before_namespacephp-cs-fixer—deprecated upstream; successor: blank_lines_before_namespace
single_class_element_per_statementphp-cs-fixerformat/classes/single-member-per-statementMerged with SplitGroupedClassConstants, SplitGroupedProperties. Options: renamed for TOML: [options."format/classes/single-member-per-statement"].
single_import_per_statementphp-cs-fixerformat/imports/single-per-statementMerged with SeparateMultiUseImports. Options: renamed for TOML: [options."format/imports/single-per-statement"].
single_line_after_importsphp-cs-fixerformat/imports/blank-line-afterSame.
single_line_comment_spacingphp-cs-fixerformat/comments/single-line-spacingSame.
single_line_comment_stylephp-cs-fixerformat/comments/single-line-styleMerged with no-hash-comment. Options: renamed for TOML: [options."format/comments/single-line-style"].
single_line_empty_bodyphp-cs-fixerformat/statements/single-line-empty-bodySame.
single_line_throwphp-cs-fixerformat/functions/single-line-throwSame.
single_quotephp-cs-fixerformat/strings/single-quoteSame. 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-fixerformat/statements/space-around-constructSame. Options: renamed for TOML: [options."format/statements/space-around-construct"].
single_trait_insert_per_statementphp-cs-fixerformat/classes/single-trait-per-statementSame.
space_after_semicolonphp-cs-fixerformat/statements/space-after-semicolonSame. Options: renamed for TOML: [options."format/statements/space-after-semicolon"].
spaces_inside_parenthesesphp-cs-fixerformat/whitespace/inside-parenthesesSame. Options: renamed for TOML: [options."format/whitespace/inside-parentheses"].
standardize_incrementphp-cs-fixerformat/operators/standardize-incrementSame.
standardize_not_equalsphp-cs-fixerformat/operators/standardize-not-equalsMerged with CommonNotEqual.
statement_indentationphp-cs-fixerformat/whitespace/statement-indentationSame. Options: renamed for TOML: [options."format/whitespace/statement-indentation"].
static_lambdaphp-cs-fixerlint/performance/prefer-static-closureMerged with prefer-static-closure.
static_private_methodphp-cs-fixerlint/style/prefer-static-private-methodSame.
strict_comparisonphp-cs-fixerlint/types/no-loose-comparisonMerged with identity-comparison.
strict_paramphp-cs-fixerlint/types/require-strict-paramMerged with strict-behavior.
string_implicit_backslashesphp-cs-fixerformat/strings/implicit-backslashesSame. Options: renamed for TOML: [options."format/strings/implicit-backslashes"].
string_length_to_emptyphp-cs-fixerlint/style/prefer-empty-string-compareMerged with StrlenZeroToIdenticalEmptyString.
string_line_endingphp-cs-fixerlint/strings/require-string-line-endingSame.
stringable_for_to_stringphp-cs-fixerlint/classes/add-stringableSame.
switch_case_semicolon_to_colonphp-cs-fixerformat/control-flow/switch-case-colonMerged with ColonAfterSwitchCase, deprecated-switch-semicolon.
switch_case_spacephp-cs-fixerformat/control-flow/switch-case-spaceSame.
switch_continue_to_breakphp-cs-fixerlint/control-flow/no-switch-continueMerged with switch-continue-to-break.
ternary_operator_spacesphp-cs-fixerformat/operators/ternary-spacingSame.
ternary_to_elvis_operatorphp-cs-fixerlint/style/prefer-short-ternarySame.
ternary_to_null_coalescingphp-cs-fixerlint/operators/prefer-coalesceSame.
trailing_comma_in_multilinephp-cs-fixerformat/arrays/trailing-comma-multilineSame. Options: renamed for TOML: [options."format/arrays/trailing-comma-multiline"].
trim_array_spacesphp-cs-fixerformat/arrays/trim-spacesSame.
type_declaration_spacesphp-cs-fixerformat/types/declaration-spacingSame. Options: renamed for TOML: [options."format/types/declaration-spacing"].
types_spacesphp-cs-fixerformat/types/union-spacingSame. Options: renamed for TOML: [options."format/types/union-spacing"].
unary_operator_spacesphp-cs-fixerformat/operators/unary-spacingSame. Options: renamed for TOML: [options."format/operators/unary-spacing"].
use_arrow_functionsphp-cs-fixerlint/style/prefer-arrow-functionMerged with prefer-arrow-function.
visibility_requiredphp-cs-fixer—deprecated upstream; successor: modifier_keywords
void_returnphp-cs-fixerlint/types/add-void-return-typeSame. Options: renamed for TOML: [options."lint/types/add-void-return-type"].
whitespace_after_comma_in_arrayphp-cs-fixerformat/arrays/space-after-commaSame. Options: renamed for TOML: [options."format/arrays/space-after-comma"].
yield_from_array_to_yieldsphp-cs-fixerlint/style/no-redundant-yield-fromMerged with no-redundant-yield-from.
yoda_stylephp-cs-fixerformat/control-flow/yodaMerged 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

curly_braces_position.

deprecated upstream; successor: compact_nullable_type_declaration

compact_nullable_typehint.

deprecated upstream; successor: modifier_keywords

visibility_required.

deprecated upstream; successor: native_type_declaration_casing

native_function_type_declaration_casing.

deprecated upstream; successor: new_with_parentheses

new_with_braces.

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.

deprecated upstream; successor: no_unneeded_braces

no_unneeded_curly_braces.

deprecated upstream; successor: none (removed)

class_keyword_remove.

deprecated upstream; successor: phpdoc_no_duplicate_types

phpdoc_types_no_duplicates.

deprecated upstream; successor: single_space_around_construct

single_space_after_construct.

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.

deprecated upstream; successor: spaces_inside_parentheses

no_spaces_inside_parenthesis.

deprecated upstream; successor: string_implicit_backslashes

escape_implicit_backslashes.

deprecated upstream; successor: type_declaration_spaces

function_typehint_space.

Pun-only rules

Last updated on

Was this page helpful?