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() [files] paths, [files] exclude
Finder notPath() [format] not-path
Finder notName() [format] not-name
setIndent("\t") "whitespace/indentation-type" = "tabs" in [format.rules]. A 2-space indent is not supported: pun migrate reports it
setLineEnding("\r\n") "whitespace/line-ending" = "crlf" in [format.rules]
Custom fixer classes Reported and skipped

Rule mapping

300 of 300 upstream entries

UpstreamPun rule
align_multiline_commentformat/comments/align-multiline

Same. Options: renamed for TOML: [options."format/comments/align-multiline"].

array_indentationformat/arrays/indentation

Same.

array_pushlint/style/no-array-push

Merged with ChangeArrayPushToArrayAssign.

array_syntaxformat/arrays/syntax

Merged with LongArrayToShortArray, array-style. Options: renamed for TOML: [options."format/arrays/syntax"].

assign_null_coalescing_to_coalesce_equallint/operators/prefer-coalesce-assign

Merged with NullCoalescingOperator.

attribute_block_no_spacesformat/attributes/no-block-spaces

Same.

attribute_empty_parenthesesformat/attributes/empty-parentheses

Same. Options: renamed for TOML: [options."format/attributes/empty-parentheses"].

backtick_to_shell_execformat/functions/backtick-to-shell-exec

Merged with ShellExecFunctionCallOverBackticks, BacktickRule, DisallowedBacktickRule and 4 others (see the rule's Replaces section).

binary_operator_spacesformat/operators/binary-spacing

Same. Options: renamed for TOML: [options."format/operators/binary-spacing"].

blank_line_after_namespaceformat/imports/blank-line-after-namespace

Same.

blank_line_after_opening_tagformat/tags/blank-line-after-opening

Same.

blank_line_before_statementformat/statements/blank-line-before

Same. Options: renamed for TOML: [options."format/statements/blank-line-before"].

blank_line_between_import_groupsformat/imports/blank-line-between-groups

Same.

blank_lines_before_namespaceformat/imports/blank-lines-before-namespace

Same. Options: renamed for TOML: [options."format/imports/blank-lines-before-namespace"].

bracesNot supported

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_positionformat/statements/braces-position

Same. Options: renamed for TOML: [options."format/statements/braces-position"].

cast_spacesformat/casts/spacing

Same. Options: renamed for TOML: [options."format/casts/spacing"].

class_attributes_separationformat/classes/member-separation

Merged with NewlineBetweenClassLikeStmts. Options: renamed for TOML: [options."format/classes/member-separation"].

class_definitionformat/classes/definition

Same. Options: renamed for TOML: [options."format/classes/definition"].

class_keywordlint/style/prefer-class-constant

Merged with StringClassNameToClassConstant, UseClassKeywordForClassNameResolution, no-literal-namespace-string.

class_keyword_removeNot supported

deprecated upstream; successor: none (removed)

class_reference_name_casingformat/casing/class-reference

Same.

clean_namespaceformat/imports/clean-namespace

Same.

combine_consecutive_issetslint/control-flow/prefer-combined-isset

Merged with combine-consecutive-issets.

combine_consecutive_unsetslint/control-flow/prefer-combined-unset

Same.

combine_nested_dirnamelint/style/prefer-dirname-levels

Merged with MultiDirname.

comment_to_phpdoclint/style/prefer-phpdoc-comment

Same. Options: renamed for TOML: [options."lint/style/prefer-phpdoc-comment"].

compact_nullable_type_declarationformat/types/compact-nullable

Same.

compact_nullable_typehintNot supported

deprecated upstream; successor: compact_nullable_type_declaration

concat_spaceformat/operators/concat-spacing

Same. Options: renamed for TOML: [options."format/operators/concat-spacing"].

constant_caseformat/casing/constants

Same. Options: renamed for TOML: [options."format/casing/constants"].

control_structure_bracesformat/control-flow/braces

Merged with CompleteMissingIfElseBracket, block-statement.

control_structure_continuation_positionformat/control-flow/continuation-position

Same. Options: renamed for TOML: [options."format/control-flow/continuation-position"].

curly_braces_positionNot supported

deprecated upstream; successor: braces_position

date_time_create_from_format_calllint/style/require-create-from-format-bang

Same.

date_time_immutablelint/style/prefer-date-time-immutable

Same.

declare_equal_normalizeformat/statements/declare-equal

Same. Options: renamed for TOML: [options."format/statements/declare-equal"].

declare_parenthesesformat/statements/declare-parentheses

Same.

declare_strict_typeslint/statements/require-strict-types

Merged with strict-types. Options: renamed for TOML: [options."lint/statements/require-strict-types"].

dir_constantlint/style/prefer-dir-constant

Merged with DirNameFileConstantToDirConstant.

doctrine_annotation_array_assignmentNot supported

Doctrine rules: out of scope (Laravel-first)

doctrine_annotation_bracesNot supported

Doctrine rules: out of scope (Laravel-first)

doctrine_annotation_indentationNot supported

Doctrine rules: out of scope (Laravel-first)

doctrine_annotation_spacesNot supported

Doctrine rules: out of scope (Laravel-first)

echo_tag_syntaxformat/tags/echo-syntax

Same. Options: renamed for TOML: [options."format/tags/echo-syntax"].

elseifformat/control-flow/elseif

Same.

empty_loop_bodyformat/control-flow/empty-loop-body

Same. Options: renamed for TOML: [options."format/control-flow/empty-loop-body"].

empty_loop_conditionformat/control-flow/empty-loop-condition

Same. Options: renamed for TOML: [options."format/control-flow/empty-loop-condition"].

encodingformat/whitespace/encoding

Merged with FileWhitespaceRule, whitespace.bom.

ereg_to_preglint/style/no-ereg

Merged with EregToPregMatch.

error_suppressionlint/operators/no-error-suppression

Merged with no-error-control-operator. Options: renamed for TOML: [options."lint/operators/no-error-suppression"].

escape_implicit_backslashesNot supported

deprecated upstream; successor: string_implicit_backslashes

explicit_indirect_variableformat/statements/explicit-indirect-variable

Same.

explicit_string_variableformat/strings/explicit-variable

Merged with braced-string-interpolation.

final_classlint/style/require-final-class

Same.

final_internal_classlint/style/require-final-internal-class

Same. Options: renamed for TOML: [options."lint/style/require-final-internal-class"].

final_public_method_for_abstract_classlint/style/require-final-public-method

Same.

fopen_flag_orderlint/style/require-fopen-flag-order

Same.

fopen_flagslint/style/require-fopen-binary-flag

Same. Options: renamed for TOML: [options."lint/style/require-fopen-binary-flag"].

full_opening_tagformat/tags/full-opening

Merged with no-short-opening-tag.

fully_qualified_strict_typesformat/imports/fully-qualified-strict-types

Same. Options: renamed for TOML: [options."format/imports/fully-qualified-strict-types"].

function_declarationformat/functions/declaration

Same. Options: renamed for TOML: [options."format/functions/declaration"].

function_to_constantlint/refactor/prefer-constant

Same. Options: renamed for TOML: [options."lint/refactor/prefer-constant"].

function_typehint_spaceNot supported

deprecated upstream; successor: type_declaration_spaces

general_attribute_removelint/refactor/remove-attribute

Same. Options: renamed for TOML: [options."lint/refactor/remove-attribute"].

general_phpdoc_annotation_removelint/refactor/remove-phpdoc-annotation

Same. Options: renamed for TOML: [options."lint/refactor/remove-phpdoc-annotation"].

general_phpdoc_tag_renamelint/refactor/rename-phpdoc-tag

Same. Options: renamed for TOML: [options."lint/refactor/rename-phpdoc-tag"].

get_class_to_class_keywordlint/style/prefer-class-keyword-on-object

Merged with ClassOnObject.

global_namespace_importformat/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_importformat/imports/group

Same. Options: renamed for TOML: [options."format/imports/group"].

header_commentformat/comments/header

Same. Options: renamed for TOML: [options."format/comments/header"].

heredoc_closing_markerformat/strings/heredoc-closing-marker

Same. Options: renamed for TOML: [options."format/strings/heredoc-closing-marker"].

heredoc_indentationformat/strings/heredoc-indentation

Same. Options: renamed for TOML: [options."format/strings/heredoc-indentation"].

heredoc_to_nowdocformat/strings/heredoc-to-nowdoc

Same.

implode_calllint/style/require-implode-separator

Merged with ConsistentImplode.

includeformat/control-flow/include

Same.

increment_styleformat/operators/increment-style

Merged with prefer-pre-increment. Options: renamed for TOML: [options."format/operators/increment-style"].

indentation_typeformat/whitespace/indentation-type

Same. Options: Pun's own style option, for PHP-CS-Fixer's setIndent().

integer_literal_caseformat/casing/integer-literals

Same.

is_nulllint/style/no-is-null

Merged with no-is-null.

lambda_not_used_importlint/functions/no-unused-closure-use

Merged with RemoveUnusedClosureVariableUse, UnusedClosureUsesRule, no-unused-closure-capture and 2 others (see the rule's Replaces section).

line_endingformat/whitespace/line-ending

Same. Options: Pun's own ending option, for PHP-CS-Fixer's setLineEnding().

linebreak_after_opening_tagformat/tags/linebreak-after-opening

Same.

list_syntaxformat/arrays/list-syntax

Merged with ListToArrayDestruct. Options: renamed for TOML: [options."format/arrays/list-syntax"].

logical_operatorslint/operators/no-and-or-keywords

Merged with LogicalToBoolean.

long_to_shorthand_operatorlint/style/prefer-compound-assignment

Merged with CombinedAssign, use-compound-assignment.

lowercase_castformat/casts/lowercase

Same.

lowercase_keywordsformat/casing/keywords

Merged with lowercase-keyword.

lowercase_static_referenceformat/casing/static-reference

Same.

magic_constant_casingformat/casing/magic-constants

Same.

magic_method_casingformat/casing/magic-methods

Same.

mb_str_functionslint/strings/prefer-mb-functions

Same.

method_argument_spaceformat/functions/argument-spacing

Same. Options: renamed for TOML: [options."format/functions/argument-spacing"].

method_chaining_indentationformat/functions/chain-indentation

Same.

modern_serialization_methodslint/style/no-sleep-wakeup

Merged with SleepToSerialize, WakeupToUnserialize.

modernize_strposlint/style/prefer-str-contains

Merged with StrContains, str-contains, str-starts-with. Options: renamed for TOML: [options."lint/style/prefer-str-contains"].

modernize_types_castinglint/style/prefer-cast-over-intval

Same.

modifier_keywordsformat/classes/modifier-keywords

Merged with ExplicitPublicClassMethod, VarToPublicProperty. Options: renamed for TOML: [options."format/classes/modifier-keywords"].

multiline_comment_opening_closingformat/comments/multiline-delimiters

Same.

multiline_promoted_propertiesformat/classes/multiline-promoted-properties

Same. Options: renamed for TOML: [options."format/classes/multiline-promoted-properties"].

multiline_string_to_heredocformat/strings/multiline-to-heredoc

Same.

multiline_whitespace_before_semicolonsformat/statements/multiline-semicolon

Same. Options: renamed for TOML: [options."format/statements/multiline-semicolon"].

native_constant_invocationlint/performance/require-qualified-native-constant

Same. Options: renamed for TOML: [options."lint/performance/require-qualified-native-constant"].

native_function_casingformat/casing/native-functions

Same.

native_function_invocationlint/performance/require-qualified-native-function

Same. Options: renamed for TOML: [options."lint/performance/require-qualified-native-function"].

native_function_type_declaration_casingNot supported

deprecated upstream; successor: native_type_declaration_casing

native_type_declaration_casingformat/casing/native-types

Merged with lowercase-type-hint.

new_expression_parenthesesformat/operators/new-expression-parentheses

Merged with NewMethodCallWithoutParentheses. Options: renamed for TOML: [options."format/operators/new-expression-parentheses"].

new_with_bracesNot supported

deprecated upstream; successor: new_with_parentheses

new_with_parenthesesformat/operators/new-parentheses

Same. Options: renamed for TOML: [options."format/operators/new-parentheses"].

no_alias_functionslint/style/no-alias-function

Merged with no-alias-function. Options: renamed for TOML: [options."lint/style/no-alias-function"].

no_alias_language_construct_callformat/functions/no-alias-construct-call

Same.

no_alternative_syntaxformat/control-flow/no-alternative-syntax

Merged with AlternativeIfToBracket, no-alternative-syntax. Options: renamed for TOML: [options."format/control-flow/no-alternative-syntax"].

no_binary_stringformat/strings/no-binary

Merged with no-redundant-binary-string-prefix.

no_blank_lines_after_class_openingformat/classes/no-blank-line-after-opening

Same.

no_blank_lines_after_phpdocformat/phpdoc/no-blank-line-after

Same.

no_blank_lines_before_namespaceNot supported

deprecated upstream; successor: blank_lines_before_namespace

no_break_commentformat/control-flow/no-break-comment

Same. Options: renamed for TOML: [options."format/control-flow/no-break-comment"].

no_closing_tagformat/tags/no-closing

Merged with no-closing-tag, no-php-tag-terminator, whitespace.fileEnd.

no_empty_commentformat/comments/no-empty

Merged with no-empty-comment.

no_empty_phpdocformat/phpdoc/no-empty

Same.

no_empty_statementlint/statements/no-empty

Merged with no-noop.

no_extra_blank_linesformat/whitespace/no-extra-blank-lines

Same. Options: renamed for TOML: [options."format/whitespace/no-extra-blank-lines"].

no_homoglyph_nameslint/security/no-homoglyph-names

Same.

no_leading_import_slashformat/imports/no-leading-slash

Same.

no_leading_namespace_whitespaceformat/imports/no-leading-namespace-whitespace

Same.

no_mixed_echo_printformat/statements/no-mixed-echo-print

Same. Options: renamed for TOML: [options."format/statements/no-mixed-echo-print"].

no_multiline_whitespace_around_double_arrowformat/arrays/no-multiline-double-arrow

Same.

no_multiple_statements_per_lineformat/statements/one-per-line

Same.

no_null_property_initializationlint/classes/no-null-property-default

Merged with RemoveNullPropertyInitialization, no-null-property-init.

no_php4_constructorlint/style/no-php4-constructor

Merged with Php4Constructor, no-legacy-constructor.

no_redundant_readonly_propertylint/classes/no-redundant-readonly

Merged with RemoveReadonlyPropertyVisibilityOnReadonlyClass, no-redundant-readonly.

no_short_bool_castformat/casts/no-short-bool

Merged with ReplaceMultipleBooleanNot, no-short-bool-cast.

no_singleline_whitespace_before_semicolonsformat/statements/no-space-before-semicolon

Same.

no_space_around_double_colonformat/operators/no-space-around-double-colon

Same.

no_spaces_after_function_nameformat/functions/no-space-after-name

Same.

no_spaces_around_offsetformat/arrays/no-space-around-offset

Same. Options: renamed for TOML: [options."format/arrays/no-space-around-offset"].

no_spaces_inside_parenthesisNot supported

deprecated upstream; successor: spaces_inside_parentheses

no_superfluous_elseiflint/control-flow/no-superfluous-elseif

Same.

no_superfluous_phpdoc_tagslint/phpdoc/no-superfluous-tags

Same. Options: renamed for TOML: [options."lint/phpdoc/no-superfluous-tags"].

no_trailing_comma_in_list_callNot supported

deprecated upstream; successor: no_trailing_comma_in_singleline

no_trailing_comma_in_singlelineformat/arrays/no-trailing-comma-single-line

Same. Options: renamed for TOML: [options."format/arrays/no-trailing-comma-single-line"].

no_trailing_comma_in_singleline_arrayNot supported

deprecated upstream; successor: no_trailing_comma_in_singleline

no_trailing_comma_in_singleline_function_callNot supported

deprecated upstream; successor: no_trailing_comma_in_singleline

no_trailing_whitespaceformat/whitespace/no-trailing

Same.

no_trailing_whitespace_in_commentformat/comments/no-trailing-whitespace

Merged with no-trailing-space.

no_trailing_whitespace_in_stringlint/strings/no-trailing-whitespace-in-string

Same.

no_unneeded_bracesformat/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_parenthesesformat/control-flow/no-unneeded-parentheses

Merged with no-redundant-parentheses. Options: renamed for TOML: [options."format/control-flow/no-unneeded-parentheses"].

no_unneeded_curly_bracesNot supported

deprecated upstream; successor: no_unneeded_braces

no_unneeded_final_methodlint/style/no-redundant-final

Merged with FinalPrivateToPrivateVisibility, no-redundant-final. Options: renamed for TOML: [options."lint/style/no-redundant-final"].

no_unneeded_import_aliasformat/imports/no-unneeded-alias

Merged with RemoveUselessAliasInUseStatement.

no_unreachable_default_argument_valuelint/functions/no-unreachable-default-argument-value

Same.

no_unset_castformat/casts/no-unset

Same.

no_unset_on_propertylint/classes/no-unset-on-property

Same.

no_unused_importslint/imports/no-unused

Merged with no-redundant-use.

no_useless_concat_operatorformat/operators/no-useless-concat

Merged with no-redundant-string-concat. Options: renamed for TOML: [options."format/operators/no-useless-concat"].

no_useless_elselint/control-flow/no-useless-else

Merged with no-redundant-else.

no_useless_nullsafe_operatorlint/operators/no-useless-nullsafe

Same.

no_useless_printflint/style/no-useless-printf

Same.

no_useless_returnlint/control-flow/no-useless-return

Same.

no_useless_sprintflint/style/no-useless-sprintf

Merged with UnwrapSprintfOneArgument.

no_whitespace_before_comma_in_arrayformat/arrays/no-space-before-comma

Same. Options: renamed for TOML: [options."format/arrays/no-space-before-comma"].

no_whitespace_in_blank_lineformat/whitespace/no-blank-line-whitespace

Same.

no_whitespace_in_empty_arrayformat/arrays/no-space-in-empty

Same.

non_printable_characterlint/strings/no-non-printable-character

Same. Options: renamed for TOML: [options."lint/strings/no-non-printable-character"].

normalize_index_braceformat/arrays/index-brace

Same.

not_operator_with_spaceformat/operators/not-with-space

Same.

not_operator_with_successor_spaceformat/operators/not-with-successor-space

Same.

nullable_type_declarationformat/types/nullable-syntax

Same. Options: renamed for TOML: [options."format/types/nullable-syntax"].

nullable_type_declaration_for_default_null_valueformat/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_separatorformat/statements/numeric-literal-separator

Merged with readable-literal. Options: renamed for TOML: [options."format/statements/numeric-literal-separator"].

object_operator_without_whitespaceformat/operators/no-space-around-arrow

Same.

octal_notationformat/statements/octal-notation

Merged with explicit-octal.

operator_linebreakformat/operators/linebreak

Same. Options: renamed for TOML: [options."format/operators/linebreak"].

ordered_attributesformat/attributes/ordered

Same. Options: renamed for TOML: [options."format/attributes/ordered"].

ordered_class_elementslint/classes/require-member-order

Same. Options: renamed for TOML: [options."lint/classes/require-member-order"].

ordered_importsformat/imports/ordered

Same. Options: renamed for TOML: [options."format/imports/ordered"].

ordered_interfacesformat/classes/ordered-interfaces

Same. Options: renamed for TOML: [options."format/classes/ordered-interfaces"].

ordered_traitslint/style/require-ordered-traits

Same. Options: renamed for TOML: [options."lint/style/require-ordered-traits"].

ordered_typesformat/types/ordered

Same. Options: renamed for TOML: [options."format/types/ordered"].

php_unit_assert_new_nameslint/phpunit/prefer-new-assertion-names

Same.

php_unit_attributeslint/phpunit/prefer-attributes

Same. Options: renamed for TOML: [options."lint/phpunit/prefer-attributes"].

php_unit_constructlint/phpunit/prefer-specific-assertions

Merged with use-specific-assertions. Options: renamed for TOML: [options."lint/phpunit/prefer-specific-assertions"].

php_unit_data_provider_method_orderlint/phpunit/require-data-provider-order

Same. Options: renamed for TOML: [options."lint/phpunit/require-data-provider-order"].

php_unit_data_provider_namelint/phpunit/require-data-provider-naming

Same. Options: renamed for TOML: [options."lint/phpunit/require-data-provider-naming"].

php_unit_data_provider_return_typelint/phpunit/require-iterable-data-provider

Same.

php_unit_data_provider_staticlint/phpunit/require-static-data-provider

Merged with StaticDataProviderClassMethod. Options: renamed for TOML: [options."lint/phpunit/require-static-data-provider"].

php_unit_dedicate_assertlint/phpunit/prefer-dedicated-assertion

Same. Options: renamed for TOML: [options."lint/phpunit/prefer-dedicated-assertion"].

php_unit_dedicate_assert_internal_typelint/phpunit/no-assert-internal-type

Merged with SpecificAssertInternalType. Options: renamed for TOML: [options."lint/phpunit/no-assert-internal-type"].

php_unit_expectationlint/phpunit/prefer-expect-exception

Merged with DelegateExceptionArguments. Options: renamed for TOML: [options."lint/phpunit/prefer-expect-exception"].

php_unit_fqcn_annotationformat/phpunit/fqcn-annotation

Same.

php_unit_internal_classlint/phpunit/require-internal

Same. Options: renamed for TOML: [options."lint/phpunit/require-internal"].

php_unit_method_casinglint/phpunit/require-method-casing

Same. Options: renamed for TOML: [options."lint/phpunit/require-method-casing"].

php_unit_mocklint/phpunit/prefer-create-mock

Merged with GetMock. Options: renamed for TOML: [options."lint/phpunit/prefer-create-mock"].

php_unit_mock_short_will_returnlint/phpunit/prefer-short-will-return

Same.

php_unit_namespacedlint/phpunit/prefer-namespaced

Same. Options: renamed for TOML: [options."lint/phpunit/prefer-namespaced"].

php_unit_no_expectation_annotationlint/phpunit/no-expected-exception-annotation

Merged with ExceptionAnnotation. Options: renamed for TOML: [options."lint/phpunit/no-expected-exception-annotation"].

php_unit_set_up_tear_down_visibilitylint/phpunit/require-protected-setup

Same.

php_unit_size_classlint/phpunit/require-size

Same. Options: renamed for TOML: [options."lint/phpunit/require-size"].

php_unit_strictlint/phpunit/prefer-assert-same

Merged with AssertEqualsToSame, strict-assertions. Options: renamed for TOML: [options."lint/phpunit/prefer-assert-same"].

php_unit_test_annotationlint/phpunit/require-test-annotation-style

Same. Options: renamed for TOML: [options."lint/phpunit/require-test-annotation-style"].

php_unit_test_case_static_method_callslint/phpunit/require-assertion-style

Merged with assertion-style. Options: renamed for TOML: [options."lint/phpunit/require-assertion-style"].

php_unit_test_class_requires_coverslint/phpunit/require-covers

Same.

phpdoc_add_missing_param_annotationlint/phpdoc/add-missing-param

Same. Options: renamed for TOML: [options."lint/phpdoc/add-missing-param"].

phpdoc_alignformat/phpdoc/align

Same. Options: renamed for TOML: [options."format/phpdoc/align"].

phpdoc_annotation_without_dotformat/phpdoc/annotation-without-dot

Same.

phpdoc_array_typelint/style/prefer-generic-array-phpdoc

Same.

phpdoc_indentformat/phpdoc/indent

Same.

phpdoc_inline_tag_normalizerformat/phpdoc/inline-tag

Same. Options: renamed for TOML: [options."format/phpdoc/inline-tag"].

phpdoc_line_spanformat/phpdoc/line-span

Same. Options: renamed for TOML: [options."format/phpdoc/line-span"].

phpdoc_list_typelint/style/prefer-list-phpdoc

Same.

phpdoc_no_accesslint/phpdoc/no-access

Same.

phpdoc_no_alias_tagformat/phpdoc/no-alias-tag

Same. Options: renamed for TOML: [options."format/phpdoc/no-alias-tag"].

phpdoc_no_duplicate_typesformat/phpdoc/no-duplicate-types

Same.

phpdoc_no_empty_returnlint/phpdoc/no-empty-return

Same.

phpdoc_no_packagelint/phpdoc/no-package

Same.

phpdoc_no_useless_inheritdoclint/phpdoc/no-useless-inheritdoc

Same.

phpdoc_orderformat/phpdoc/order

Same. Options: renamed for TOML: [options."format/phpdoc/order"].

phpdoc_order_by_valueformat/phpdoc/order-by-value

Same. Options: renamed for TOML: [options."format/phpdoc/order-by-value"].

phpdoc_param_orderformat/phpdoc/param-order

Same.

phpdoc_readonly_class_comment_to_keywordlint/style/prefer-readonly-keyword

Same.

phpdoc_return_self_referenceformat/phpdoc/return-self-reference

Same. Options: renamed for TOML: [options."format/phpdoc/return-self-reference"].

phpdoc_scalarformat/phpdoc/scalar

Same. Options: renamed for TOML: [options."format/phpdoc/scalar"].

phpdoc_separationformat/phpdoc/separation

Same. Options: renamed for TOML: [options."format/phpdoc/separation"].

phpdoc_single_line_var_spacingformat/phpdoc/single-line-var-spacing

Same.

phpdoc_summaryformat/phpdoc/summary

Same.

phpdoc_tag_casingformat/phpdoc/tag-casing

Same. Options: renamed for TOML: [options."format/phpdoc/tag-casing"].

phpdoc_tag_no_named_argumentslint/phpdoc/require-no-named-arguments

Same. Options: renamed for TOML: [options."lint/phpdoc/require-no-named-arguments"].

phpdoc_tag_typeformat/phpdoc/tag-type

Same. Options: renamed for TOML: [options."format/phpdoc/tag-type"].

phpdoc_to_commentlint/phpdoc/no-misplaced

Same. Options: renamed for TOML: [options."lint/phpdoc/no-misplaced"].

phpdoc_to_param_typelint/style/add-param-type-from-phpdoc

Same. Options: renamed for TOML: [options."lint/style/add-param-type-from-phpdoc"].

phpdoc_to_property_typelint/style/add-property-type-from-phpdoc

Same. Options: renamed for TOML: [options."lint/style/add-property-type-from-phpdoc"].

phpdoc_to_return_typelint/style/add-return-type-from-phpdoc

Same. Options: renamed for TOML: [options."lint/style/add-return-type-from-phpdoc"].

phpdoc_trimformat/phpdoc/trim

Same.

phpdoc_trim_consecutive_blank_line_separationformat/phpdoc/trim-blank-lines

Same.

phpdoc_typesformat/phpdoc/types

Same. Options: renamed for TOML: [options."format/phpdoc/types"].

phpdoc_types_no_duplicatesNot supported

deprecated upstream; successor: phpdoc_no_duplicate_types

phpdoc_types_orderformat/phpdoc/types-order

Same. Options: renamed for TOML: [options."format/phpdoc/types-order"].

phpdoc_var_annotation_correct_orderformat/phpdoc/var-order

Same.

phpdoc_var_without_nameformat/phpdoc/var-without-name

Same.

pow_to_exponentiationlint/style/prefer-pow-operator

Merged with PowToExp.

protected_to_privatelint/classes/no-protected-in-final

Merged with no-protected-in-final.

psr_autoloadinglint/classes/require-class-matches-file

Merged with file-name. Options: renamed for TOML: [options."lint/classes/require-class-matches-file"].

random_api_migrationlint/style/prefer-random-int

Same. Options: renamed for TOML: [options."lint/style/prefer-random-int"].

regular_callable_calllint/style/no-call-user-func

Same.

return_assignmentlint/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_fromlint/control-flow/prefer-yield-from

Same.

return_type_declarationformat/functions/return-type-spacing

Same. Options: renamed for TOML: [options."format/functions/return-type-spacing"].

self_accessorlint/style/prefer-self-reference

Merged with prefer-self, prefer-self-return-type.

self_static_accessorlint/classes/prefer-self-in-final

Merged with ConvertStaticToSelf, StaticToSelfOnFinalClass, redundant-static.

semicolon_after_instructionformat/statements/semicolon-after-instruction

Same.

set_type_to_castlint/style/prefer-cast-over-settype

Same.

short_scalar_castformat/casts/short-scalar

Merged with DeprecatedCastRule, deprecated-cast, cast.deprecated.

simple_to_complex_string_variableformat/strings/complex-variable

Same.

simplified_if_returnlint/control-flow/prefer-bool-return

Merged with SimplifyIfReturnBool.

simplified_null_returnlint/control-flow/prefer-bare-return

Same.

single_blank_line_at_eofformat/whitespace/final-newline

Same.

single_blank_line_before_namespaceNot supported

deprecated upstream; successor: blank_lines_before_namespace

single_class_element_per_statementformat/classes/single-member-per-statement

Merged with SplitGroupedClassConstants, SplitGroupedProperties. Options: renamed for TOML: [options."format/classes/single-member-per-statement"].

single_import_per_statementformat/imports/single-per-statement

Merged with SeparateMultiUseImports. Options: renamed for TOML: [options."format/imports/single-per-statement"].

single_line_after_importsformat/imports/blank-line-after

Same.

single_line_comment_spacingformat/comments/single-line-spacing

Same.

single_line_comment_styleformat/comments/single-line-style

Merged with no-hash-comment. Options: renamed for TOML: [options."format/comments/single-line-style"].

single_line_empty_bodyformat/statements/single-line-empty-body

Same.

single_line_throwformat/functions/single-line-throw

Same.

single_quoteformat/strings/single-quote

Same. Options: renamed for TOML: [options."format/strings/single-quote"].

single_space_after_constructNot supported

deprecated upstream; successor: single_space_around_construct

single_space_around_constructformat/statements/space-around-construct

Same. Options: renamed for TOML: [options."format/statements/space-around-construct"].

single_trait_insert_per_statementformat/classes/single-trait-per-statement

Same.

space_after_semicolonformat/statements/space-after-semicolon

Same. Options: renamed for TOML: [options."format/statements/space-after-semicolon"].

spaces_inside_parenthesesformat/whitespace/inside-parentheses

Same. Options: renamed for TOML: [options."format/whitespace/inside-parentheses"].

standardize_incrementformat/operators/standardize-increment

Same.

standardize_not_equalsformat/operators/standardize-not-equals

Merged with CommonNotEqual.

statement_indentationformat/whitespace/statement-indentation

Same. Options: renamed for TOML: [options."format/whitespace/statement-indentation"].

static_lambdalint/performance/prefer-static-closure

Merged with prefer-static-closure.

static_private_methodlint/style/prefer-static-private-method

Same.

strict_comparisonlint/types/no-loose-comparison

Merged with identity-comparison.

strict_paramlint/types/require-strict-param

Merged with strict-behavior.

string_implicit_backslashesformat/strings/implicit-backslashes

Same. Options: renamed for TOML: [options."format/strings/implicit-backslashes"].

string_length_to_emptylint/style/prefer-empty-string-compare

Merged with StrlenZeroToIdenticalEmptyString.

string_line_endinglint/strings/require-string-line-ending

Same.

stringable_for_to_stringlint/classes/add-stringable

Merged with StringableForToString.

switch_case_semicolon_to_colonformat/control-flow/switch-case-colon

Merged with ColonAfterSwitchCase, deprecated-switch-semicolon.

switch_case_spaceformat/control-flow/switch-case-space

Same.

switch_continue_to_breaklint/control-flow/no-switch-continue

Merged with ContinueToBreakInSwitch, switch-continue-to-break.

ternary_operator_spacesformat/operators/ternary-spacing

Same.

ternary_to_elvis_operatorlint/style/prefer-short-ternary

Merged with TernaryToElvis.

ternary_to_null_coalescinglint/operators/prefer-coalesce

Merged with TernaryToNullCoalescing.

trailing_comma_in_multilineformat/arrays/trailing-comma-multiline

Same. Options: renamed for TOML: [options."format/arrays/trailing-comma-multiline"].

trim_array_spacesformat/arrays/trim-spaces

Same.

type_declaration_spacesformat/types/declaration-spacing

Same. Options: renamed for TOML: [options."format/types/declaration-spacing"].

types_spacesformat/types/union-spacing

Same. Options: renamed for TOML: [options."format/types/union-spacing"].

unary_operator_spacesformat/operators/unary-spacing

Same. Options: renamed for TOML: [options."format/operators/unary-spacing"].

use_arrow_functionslint/style/prefer-arrow-function

Merged with prefer-arrow-function.

visibility_requiredNot supported

deprecated upstream; successor: modifier_keywords

void_returnlint/types/add-void-return-type

Same. Options: renamed for TOML: [options."lint/types/add-void-return-type"].

whitespace_after_comma_in_arrayformat/arrays/space-after-comma

Same. Options: renamed for TOML: [options."format/arrays/space-after-comma"].

yield_from_array_to_yieldslint/style/no-redundant-yield-from

Merged with no-redundant-yield-from.

yoda_styleformat/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)

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?