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

Coming from pint

Config translation

pun migrate keeps the old config and reports what it skips. Planned rules do not run.

Run pun migrate --from pint. Pint’s risky and code-deleting fixers become lint rules, not format rules.

pint.json pun.toml
preset: laravel or psr12 [format] preset = "laravel" or "psr12"
preset: per, and @PER-CS rule sets Explicit rules over the empty format preset
preset: symfony Not supported: pun migrate stops with an error
rules [format.rules] for layout, and [lint.rules] at "error" for code edits
Rule options Pun option names and values, on each rule page
in, exclude [files] paths, [files] exclude
notPath [format] not-path
notName [format] not-name
@php-cs-fixer-ignore @pun-ignore-file with the full format rule ID

Rule mapping

303 of 303 upstream entries

UpstreamPun rule
align_multiline_commentphp-cs-fixerformat/comments/align-multiline

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

array_indentationphp-cs-fixerformat/arrays/indentation

Same.

array_pushphp-cs-fixerlint/style/no-array-push

Merged with ChangeArrayPushToArrayAssign.

array_syntaxphp-cs-fixerformat/arrays/syntax

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

assign_null_coalescing_to_coalesce_equalphp-cs-fixerlint/operators/prefer-coalesce-assign

Merged with NullCoalescingOperator.

attribute_block_no_spacesphp-cs-fixerformat/attributes/no-block-spaces

Same.

attribute_empty_parenthesesphp-cs-fixerformat/attributes/empty-parentheses

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

backtick_to_shell_execphp-cs-fixerformat/functions/backtick-to-shell-exec

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

binary_operator_spacesphp-cs-fixerformat/operators/binary-spacing

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

blank_line_after_namespacephp-cs-fixerformat/imports/blank-line-after-namespace

Same.

blank_line_after_opening_tagphp-cs-fixerformat/tags/blank-line-after-opening

Same.

blank_line_before_statementphp-cs-fixerformat/statements/blank-line-before

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

blank_line_between_import_groupsphp-cs-fixerformat/imports/blank-line-between-groups

Same.

blank_lines_before_namespacephp-cs-fixerformat/imports/blank-lines-before-namespace

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

bracesphp-cs-fixerNot 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_positionphp-cs-fixerformat/statements/braces-position

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

cast_spacesphp-cs-fixerformat/casts/spacing

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

class_attributes_separationphp-cs-fixerformat/classes/member-separation

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

class_definitionphp-cs-fixerformat/classes/definition

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

class_keywordphp-cs-fixerlint/style/prefer-class-constant

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

class_keyword_removephp-cs-fixerNot supported

deprecated upstream; successor: none (removed)

class_reference_name_casingphp-cs-fixerformat/casing/class-reference

Same.

clean_namespacephp-cs-fixerformat/imports/clean-namespace

Same.

combine_consecutive_issetsphp-cs-fixerlint/control-flow/prefer-combined-isset

Merged with combine-consecutive-issets.

combine_consecutive_unsetsphp-cs-fixerlint/control-flow/prefer-combined-unset

Same.

combine_nested_dirnamephp-cs-fixerlint/style/prefer-dirname-levels

Merged with MultiDirname.

comment_to_phpdocphp-cs-fixerlint/style/prefer-phpdoc-comment

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

compact_nullable_type_declarationphp-cs-fixerformat/types/compact-nullable

Same.

compact_nullable_typehintphp-cs-fixerNot supported

deprecated upstream; successor: compact_nullable_type_declaration

concat_spacephp-cs-fixerformat/operators/concat-spacing

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

constant_casephp-cs-fixerformat/casing/constants

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

control_structure_bracesphp-cs-fixerformat/control-flow/braces

Merged with CompleteMissingIfElseBracket, block-statement.

control_structure_continuation_positionphp-cs-fixerformat/control-flow/continuation-position

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

curly_braces_positionphp-cs-fixerNot supported

deprecated upstream; successor: braces_position

date_time_create_from_format_callphp-cs-fixerlint/style/require-create-from-format-bang

Same.

date_time_immutablephp-cs-fixerlint/style/prefer-date-time-immutable

Same.

declare_equal_normalizephp-cs-fixerformat/statements/declare-equal

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

declare_parenthesesphp-cs-fixerformat/statements/declare-parentheses

Same.

declare_strict_typesphp-cs-fixerlint/statements/require-strict-types

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

dir_constantphp-cs-fixerlint/style/prefer-dir-constant

Merged with DirNameFileConstantToDirConstant.

doctrine_annotation_array_assignmentphp-cs-fixerNot supported

Doctrine rules: out of scope (Laravel-first)

doctrine_annotation_bracesphp-cs-fixerNot supported

Doctrine rules: out of scope (Laravel-first)

doctrine_annotation_indentationphp-cs-fixerNot supported

Doctrine rules: out of scope (Laravel-first)

doctrine_annotation_spacesphp-cs-fixerNot supported

Doctrine rules: out of scope (Laravel-first)

echo_tag_syntaxphp-cs-fixerformat/tags/echo-syntax

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

elseifphp-cs-fixerformat/control-flow/elseif

Same.

empty_loop_bodyphp-cs-fixerformat/control-flow/empty-loop-body

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

empty_loop_conditionphp-cs-fixerformat/control-flow/empty-loop-condition

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

encodingphp-cs-fixerformat/whitespace/encoding

Merged with FileWhitespaceRule, whitespace.bom.

ereg_to_pregphp-cs-fixerlint/style/no-ereg

Merged with EregToPregMatch.

error_suppressionphp-cs-fixerlint/operators/no-error-suppression

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

escape_implicit_backslashesphp-cs-fixerNot supported

deprecated upstream; successor: string_implicit_backslashes

explicit_indirect_variablephp-cs-fixerformat/statements/explicit-indirect-variable

Same.

explicit_string_variablephp-cs-fixerformat/strings/explicit-variable

Merged with braced-string-interpolation.

final_classphp-cs-fixerlint/style/require-final-class

Same.

final_internal_classphp-cs-fixerlint/style/require-final-internal-class

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

final_public_method_for_abstract_classphp-cs-fixerlint/style/require-final-public-method

Same.

fopen_flag_orderphp-cs-fixerlint/style/require-fopen-flag-order

Same.

fopen_flagsphp-cs-fixerlint/style/require-fopen-binary-flag

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

full_opening_tagphp-cs-fixerformat/tags/full-opening

Merged with no-short-opening-tag.

fully_qualified_strict_typesphp-cs-fixerformat/imports/fully-qualified-strict-types

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

function_declarationphp-cs-fixerformat/functions/declaration

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

function_to_constantphp-cs-fixerlint/refactor/prefer-constant

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

function_typehint_spacephp-cs-fixerNot supported

deprecated upstream; successor: type_declaration_spaces

general_attribute_removephp-cs-fixerlint/refactor/remove-attribute

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

general_phpdoc_annotation_removephp-cs-fixerlint/refactor/remove-phpdoc-annotation

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

general_phpdoc_tag_renamephp-cs-fixerlint/refactor/rename-phpdoc-tag

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

get_class_to_class_keywordphp-cs-fixerlint/style/prefer-class-keyword-on-object

Merged with ClassOnObject.

global_namespace_importphp-cs-fixerformat/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-fixerformat/imports/group

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

header_commentphp-cs-fixerformat/comments/header

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

heredoc_closing_markerphp-cs-fixerformat/strings/heredoc-closing-marker

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

heredoc_indentationphp-cs-fixerformat/strings/heredoc-indentation

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

heredoc_to_nowdocphp-cs-fixerformat/strings/heredoc-to-nowdoc

Same.

implode_callphp-cs-fixerlint/style/require-implode-separator

Merged with ConsistentImplode.

includephp-cs-fixerformat/control-flow/include

Same.

increment_stylephp-cs-fixerformat/operators/increment-style

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

indentation_typephp-cs-fixerformat/whitespace/indentation-type

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

integer_literal_casephp-cs-fixerformat/casing/integer-literals

Same.

is_nullphp-cs-fixerlint/style/no-is-null

Merged with no-is-null.

lambda_not_used_importphp-cs-fixerlint/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-fixerformat/whitespace/line-ending

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

linebreak_after_opening_tagphp-cs-fixerformat/tags/linebreak-after-opening

Same.

list_syntaxphp-cs-fixerformat/arrays/list-syntax

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

logical_operatorsphp-cs-fixerlint/operators/no-and-or-keywords

Merged with LogicalToBoolean.

long_to_shorthand_operatorphp-cs-fixerlint/style/prefer-compound-assignment

Merged with CombinedAssign, use-compound-assignment.

lowercase_castphp-cs-fixerformat/casts/lowercase

Same.

lowercase_keywordsphp-cs-fixerformat/casing/keywords

Merged with lowercase-keyword.

lowercase_static_referencephp-cs-fixerformat/casing/static-reference

Same.

magic_constant_casingphp-cs-fixerformat/casing/magic-constants

Same.

magic_method_casingphp-cs-fixerformat/casing/magic-methods

Same.

mb_str_functionsphp-cs-fixerlint/strings/prefer-mb-functions

Same.

method_argument_spacephp-cs-fixerformat/functions/argument-spacing

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

method_chaining_indentationphp-cs-fixerformat/functions/chain-indentation

Same.

modern_serialization_methodsphp-cs-fixerlint/style/no-sleep-wakeup

Merged with SleepToSerialize, WakeupToUnserialize.

modernize_strposphp-cs-fixerlint/style/prefer-str-contains

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

modernize_types_castingphp-cs-fixerlint/style/prefer-cast-over-intval

Same.

modifier_keywordsphp-cs-fixerformat/classes/modifier-keywords

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

multiline_comment_opening_closingphp-cs-fixerformat/comments/multiline-delimiters

Same.

multiline_promoted_propertiesphp-cs-fixerformat/classes/multiline-promoted-properties

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

multiline_string_to_heredocphp-cs-fixerformat/strings/multiline-to-heredoc

Same.

multiline_whitespace_before_semicolonsphp-cs-fixerformat/statements/multiline-semicolon

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

native_constant_invocationphp-cs-fixerlint/performance/require-qualified-native-constant

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

native_function_casingphp-cs-fixerformat/casing/native-functions

Same.

native_function_invocationphp-cs-fixerlint/performance/require-qualified-native-function

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

native_function_type_declaration_casingphp-cs-fixerNot supported

deprecated upstream; successor: native_type_declaration_casing

native_type_declaration_casingphp-cs-fixerformat/casing/native-types

Merged with lowercase-type-hint.

new_expression_parenthesesphp-cs-fixerformat/operators/new-expression-parentheses

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

new_with_bracesphp-cs-fixerNot supported

deprecated upstream; successor: new_with_parentheses

new_with_parenthesesphp-cs-fixerformat/operators/new-parentheses

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

no_alias_functionsphp-cs-fixerlint/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-fixerformat/functions/no-alias-construct-call

Same.

no_alternative_syntaxphp-cs-fixerformat/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-fixerformat/strings/no-binary

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

no_blank_lines_after_class_openingphp-cs-fixerformat/classes/no-blank-line-after-opening

Same.

no_blank_lines_after_phpdocphp-cs-fixerformat/phpdoc/no-blank-line-after

Same.

no_blank_lines_before_namespacephp-cs-fixerNot supported

deprecated upstream; successor: blank_lines_before_namespace

no_break_commentphp-cs-fixerformat/control-flow/no-break-comment

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

no_closing_tagphp-cs-fixerformat/tags/no-closing

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

no_empty_commentphp-cs-fixerformat/comments/no-empty

Merged with no-empty-comment.

no_empty_phpdocphp-cs-fixerformat/phpdoc/no-empty

Same.

no_empty_statementphp-cs-fixerlint/statements/no-empty

Merged with no-noop.

no_extra_blank_linesphp-cs-fixerformat/whitespace/no-extra-blank-lines

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

no_homoglyph_namesphp-cs-fixerlint/security/no-homoglyph-names

Same.

no_leading_import_slashphp-cs-fixerformat/imports/no-leading-slash

Same.

no_leading_namespace_whitespacephp-cs-fixerformat/imports/no-leading-namespace-whitespace

Same.

no_mixed_echo_printphp-cs-fixerformat/statements/no-mixed-echo-print

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

no_multiline_whitespace_around_double_arrowphp-cs-fixerformat/arrays/no-multiline-double-arrow

Same.

no_multiple_statements_per_linephp-cs-fixerformat/statements/one-per-line

Same.

no_null_property_initializationphp-cs-fixerlint/classes/no-null-property-default

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

no_php4_constructorphp-cs-fixerlint/style/no-php4-constructor

Merged with Php4Constructor, no-legacy-constructor.

no_redundant_readonly_propertyphp-cs-fixerlint/classes/no-redundant-readonly

Merged with RemoveReadonlyPropertyVisibilityOnReadonlyClass, no-redundant-readonly.

no_short_bool_castphp-cs-fixerformat/casts/no-short-bool

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

no_singleline_whitespace_before_semicolonsphp-cs-fixerformat/statements/no-space-before-semicolon

Same.

no_space_around_double_colonphp-cs-fixerformat/operators/no-space-around-double-colon

Same.

no_spaces_after_function_namephp-cs-fixerformat/functions/no-space-after-name

Same.

no_spaces_around_offsetphp-cs-fixerformat/arrays/no-space-around-offset

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

no_spaces_inside_parenthesisphp-cs-fixerNot supported

deprecated upstream; successor: spaces_inside_parentheses

no_superfluous_elseifphp-cs-fixerlint/control-flow/no-superfluous-elseif

Same.

no_superfluous_phpdoc_tagsphp-cs-fixerlint/phpdoc/no-superfluous-tags

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

no_trailing_comma_in_list_callphp-cs-fixerNot supported

deprecated upstream; successor: no_trailing_comma_in_singleline

no_trailing_comma_in_singlelinephp-cs-fixerformat/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-fixerNot supported

deprecated upstream; successor: no_trailing_comma_in_singleline

no_trailing_comma_in_singleline_function_callphp-cs-fixerNot supported

deprecated upstream; successor: no_trailing_comma_in_singleline

no_trailing_whitespacephp-cs-fixerformat/whitespace/no-trailing

Same.

no_trailing_whitespace_in_commentphp-cs-fixerformat/comments/no-trailing-whitespace

Merged with no-trailing-space.

no_trailing_whitespace_in_stringphp-cs-fixerlint/strings/no-trailing-whitespace-in-string

Same.

no_unneeded_bracesphp-cs-fixerformat/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-fixerformat/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-fixerNot supported

deprecated upstream; successor: no_unneeded_braces

no_unneeded_final_methodphp-cs-fixerlint/style/no-redundant-final

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

no_unneeded_import_aliasphp-cs-fixerformat/imports/no-unneeded-alias

Merged with RemoveUselessAliasInUseStatement.

no_unreachable_default_argument_valuephp-cs-fixerlint/functions/no-unreachable-default-argument-value

Same.

no_unset_castphp-cs-fixerformat/casts/no-unset

Same.

no_unset_on_propertyphp-cs-fixerlint/classes/no-unset-on-property

Same.

no_unused_importsphp-cs-fixerlint/imports/no-unused

Merged with no-redundant-use.

no_useless_concat_operatorphp-cs-fixerformat/operators/no-useless-concat

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

no_useless_elsephp-cs-fixerlint/control-flow/no-useless-else

Merged with no-redundant-else.

no_useless_nullsafe_operatorphp-cs-fixerlint/operators/no-useless-nullsafe

Same.

no_useless_printfphp-cs-fixerlint/style/no-useless-printf

Same.

no_useless_returnphp-cs-fixerlint/control-flow/no-useless-return

Same.

no_useless_sprintfphp-cs-fixerlint/style/no-useless-sprintf

Merged with UnwrapSprintfOneArgument.

no_whitespace_before_comma_in_arrayphp-cs-fixerformat/arrays/no-space-before-comma

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

no_whitespace_in_blank_linephp-cs-fixerformat/whitespace/no-blank-line-whitespace

Same.

no_whitespace_in_empty_arrayphp-cs-fixerformat/arrays/no-space-in-empty

Same.

non_printable_characterphp-cs-fixerlint/strings/no-non-printable-character

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

normalize_index_bracephp-cs-fixerformat/arrays/index-brace

Same.

not_operator_with_spacephp-cs-fixerformat/operators/not-with-space

Same.

not_operator_with_successor_spacephp-cs-fixerformat/operators/not-with-successor-space

Same.

nullable_type_declarationphp-cs-fixerformat/types/nullable-syntax

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

nullable_type_declaration_for_default_null_valuephp-cs-fixerformat/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-fixerformat/statements/numeric-literal-separator

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

object_operator_without_whitespacephp-cs-fixerformat/operators/no-space-around-arrow

Same.

octal_notationphp-cs-fixerformat/statements/octal-notation

Merged with explicit-octal.

operator_linebreakphp-cs-fixerformat/operators/linebreak

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

ordered_attributesphp-cs-fixerformat/attributes/ordered

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

ordered_class_elementsphp-cs-fixerlint/classes/require-member-order

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

ordered_importsphp-cs-fixerformat/imports/ordered

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

ordered_interfacesphp-cs-fixerformat/classes/ordered-interfaces

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

ordered_traitsphp-cs-fixerlint/style/require-ordered-traits

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

ordered_typesphp-cs-fixerformat/types/ordered

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

php_unit_assert_new_namesphp-cs-fixerlint/phpunit/prefer-new-assertion-names

Same.

php_unit_attributesphp-cs-fixerlint/phpunit/prefer-attributes

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

php_unit_constructphp-cs-fixerlint/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-fixerlint/phpunit/require-data-provider-order

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

php_unit_data_provider_namephp-cs-fixerlint/phpunit/require-data-provider-naming

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

php_unit_data_provider_return_typephp-cs-fixerlint/phpunit/require-iterable-data-provider

Same.

php_unit_data_provider_staticphp-cs-fixerlint/phpunit/require-static-data-provider

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

php_unit_dedicate_assertphp-cs-fixerlint/phpunit/prefer-dedicated-assertion

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

php_unit_dedicate_assert_internal_typephp-cs-fixerlint/phpunit/no-assert-internal-type

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

php_unit_expectationphp-cs-fixerlint/phpunit/prefer-expect-exception

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

php_unit_fqcn_annotationphp-cs-fixerformat/phpunit/fqcn-annotation

Same.

php_unit_internal_classphp-cs-fixerlint/phpunit/require-internal

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

php_unit_method_casingphp-cs-fixerlint/phpunit/require-method-casing

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

php_unit_mockphp-cs-fixerlint/phpunit/prefer-create-mock

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

php_unit_mock_short_will_returnphp-cs-fixerlint/phpunit/prefer-short-will-return

Same.

php_unit_namespacedphp-cs-fixerlint/phpunit/prefer-namespaced

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

php_unit_no_expectation_annotationphp-cs-fixerlint/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_visibilityphp-cs-fixerlint/phpunit/require-protected-setup

Same.

php_unit_size_classphp-cs-fixerlint/phpunit/require-size

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

php_unit_strictphp-cs-fixerlint/phpunit/prefer-assert-same

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

php_unit_test_annotationphp-cs-fixerlint/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-fixerlint/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-fixerlint/phpunit/require-covers

Same.

phpdoc_add_missing_param_annotationphp-cs-fixerlint/phpdoc/add-missing-param

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

phpdoc_alignphp-cs-fixerformat/phpdoc/align

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

phpdoc_annotation_without_dotphp-cs-fixerformat/phpdoc/annotation-without-dot

Same.

phpdoc_array_typephp-cs-fixerlint/style/prefer-generic-array-phpdoc

Same.

phpdoc_indentphp-cs-fixerformat/phpdoc/indent

Same.

phpdoc_inline_tag_normalizerphp-cs-fixerformat/phpdoc/inline-tag

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

phpdoc_line_spanphp-cs-fixerformat/phpdoc/line-span

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

phpdoc_list_typephp-cs-fixerlint/style/prefer-list-phpdoc

Same.

phpdoc_no_accessphp-cs-fixerlint/phpdoc/no-access

Same.

phpdoc_no_alias_tagphp-cs-fixerformat/phpdoc/no-alias-tag

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

phpdoc_no_duplicate_typesphp-cs-fixerformat/phpdoc/no-duplicate-types

Same.

phpdoc_no_empty_returnphp-cs-fixerlint/phpdoc/no-empty-return

Same.

phpdoc_no_packagephp-cs-fixerlint/phpdoc/no-package

Same.

phpdoc_no_useless_inheritdocphp-cs-fixerlint/phpdoc/no-useless-inheritdoc

Same.

phpdoc_orderphp-cs-fixerformat/phpdoc/order

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

phpdoc_order_by_valuephp-cs-fixerformat/phpdoc/order-by-value

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

phpdoc_param_orderphp-cs-fixerformat/phpdoc/param-order

Same.

phpdoc_readonly_class_comment_to_keywordphp-cs-fixerlint/style/prefer-readonly-keyword

Same.

phpdoc_return_self_referencephp-cs-fixerformat/phpdoc/return-self-reference

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

phpdoc_scalarphp-cs-fixerformat/phpdoc/scalar

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

phpdoc_separationphp-cs-fixerformat/phpdoc/separation

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

phpdoc_single_line_var_spacingphp-cs-fixerformat/phpdoc/single-line-var-spacing

Same.

phpdoc_summaryphp-cs-fixerformat/phpdoc/summary

Same.

phpdoc_tag_casingphp-cs-fixerformat/phpdoc/tag-casing

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

phpdoc_tag_no_named_argumentsphp-cs-fixerlint/phpdoc/require-no-named-arguments

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

phpdoc_tag_typephp-cs-fixerformat/phpdoc/tag-type

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

phpdoc_to_commentphp-cs-fixerlint/phpdoc/no-misplaced

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

phpdoc_to_param_typephp-cs-fixerlint/style/add-param-type-from-phpdoc

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

phpdoc_to_property_typephp-cs-fixerlint/style/add-property-type-from-phpdoc

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

phpdoc_to_return_typephp-cs-fixerlint/style/add-return-type-from-phpdoc

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

phpdoc_trimphp-cs-fixerformat/phpdoc/trim

Same.

phpdoc_trim_consecutive_blank_line_separationphp-cs-fixerformat/phpdoc/trim-blank-lines

Same.

phpdoc_typesphp-cs-fixerformat/phpdoc/types

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

phpdoc_types_no_duplicatesphp-cs-fixerNot supported

deprecated upstream; successor: phpdoc_no_duplicate_types

phpdoc_types_orderphp-cs-fixerformat/phpdoc/types-order

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

phpdoc_var_annotation_correct_orderphp-cs-fixerformat/phpdoc/var-order

Same.

phpdoc_var_without_namephp-cs-fixerformat/phpdoc/var-without-name

Same.

pow_to_exponentiationphp-cs-fixerlint/style/prefer-pow-operator

Merged with PowToExp.

protected_to_privatephp-cs-fixerlint/classes/no-protected-in-final

Merged with no-protected-in-final.

psr_autoloadingphp-cs-fixerlint/classes/require-class-matches-file

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

random_api_migrationphp-cs-fixerlint/style/prefer-random-int

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

regular_callable_callphp-cs-fixerlint/style/no-call-user-func

Same.

return_assignmentphp-cs-fixerlint/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-fixerlint/control-flow/prefer-yield-from

Same.

return_type_declarationphp-cs-fixerformat/functions/return-type-spacing

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

self_accessorphp-cs-fixerlint/style/prefer-self-reference

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

self_static_accessorphp-cs-fixerlint/classes/prefer-self-in-final

Merged with ConvertStaticToSelf, StaticToSelfOnFinalClass, redundant-static.

semicolon_after_instructionphp-cs-fixerformat/statements/semicolon-after-instruction

Same.

set_type_to_castphp-cs-fixerlint/style/prefer-cast-over-settype

Same.

short_scalar_castphp-cs-fixerformat/casts/short-scalar

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

simple_to_complex_string_variablephp-cs-fixerformat/strings/complex-variable

Same.

simplified_if_returnphp-cs-fixerlint/control-flow/prefer-bool-return

Merged with SimplifyIfReturnBool.

simplified_null_returnphp-cs-fixerlint/control-flow/prefer-bare-return

Same.

single_blank_line_at_eofphp-cs-fixerformat/whitespace/final-newline

Same.

single_blank_line_before_namespacephp-cs-fixerNot supported

deprecated upstream; successor: blank_lines_before_namespace

single_class_element_per_statementphp-cs-fixerformat/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-fixerformat/imports/single-per-statement

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

single_line_after_importsphp-cs-fixerformat/imports/blank-line-after

Same.

single_line_comment_spacingphp-cs-fixerformat/comments/single-line-spacing

Same.

single_line_comment_stylephp-cs-fixerformat/comments/single-line-style

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

single_line_empty_bodyphp-cs-fixerformat/statements/single-line-empty-body

Same.

single_line_throwphp-cs-fixerformat/functions/single-line-throw

Same.

single_quotephp-cs-fixerformat/strings/single-quote

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

single_space_after_constructphp-cs-fixerNot supported

deprecated upstream; successor: single_space_around_construct

single_space_around_constructphp-cs-fixerformat/statements/space-around-construct

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

single_trait_insert_per_statementphp-cs-fixerformat/classes/single-trait-per-statement

Same.

space_after_semicolonphp-cs-fixerformat/statements/space-after-semicolon

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

spaces_inside_parenthesesphp-cs-fixerformat/whitespace/inside-parentheses

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

standardize_incrementphp-cs-fixerformat/operators/standardize-increment

Same.

standardize_not_equalsphp-cs-fixerformat/operators/standardize-not-equals

Merged with CommonNotEqual.

statement_indentationphp-cs-fixerformat/whitespace/statement-indentation

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

static_lambdaphp-cs-fixerlint/performance/prefer-static-closure

Merged with prefer-static-closure.

static_private_methodphp-cs-fixerlint/style/prefer-static-private-method

Same.

strict_comparisonphp-cs-fixerlint/types/no-loose-comparison

Merged with identity-comparison.

strict_paramphp-cs-fixerlint/types/require-strict-param

Merged with strict-behavior.

string_implicit_backslashesphp-cs-fixerformat/strings/implicit-backslashes

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

string_length_to_emptyphp-cs-fixerlint/style/prefer-empty-string-compare

Merged with StrlenZeroToIdenticalEmptyString.

string_line_endingphp-cs-fixerlint/strings/require-string-line-ending

Same.

stringable_for_to_stringphp-cs-fixerlint/classes/add-stringable

Merged with StringableForToString.

switch_case_semicolon_to_colonphp-cs-fixerformat/control-flow/switch-case-colon

Merged with ColonAfterSwitchCase, deprecated-switch-semicolon.

switch_case_spacephp-cs-fixerformat/control-flow/switch-case-space

Same.

switch_continue_to_breakphp-cs-fixerlint/control-flow/no-switch-continue

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

ternary_operator_spacesphp-cs-fixerformat/operators/ternary-spacing

Same.

ternary_to_elvis_operatorphp-cs-fixerlint/style/prefer-short-ternary

Merged with TernaryToElvis.

ternary_to_null_coalescingphp-cs-fixerlint/operators/prefer-coalesce

Merged with TernaryToNullCoalescing.

trailing_comma_in_multilinephp-cs-fixerformat/arrays/trailing-comma-multiline

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

trim_array_spacesphp-cs-fixerformat/arrays/trim-spaces

Same.

type_declaration_spacesphp-cs-fixerformat/types/declaration-spacing

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

types_spacesphp-cs-fixerformat/types/union-spacing

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

unary_operator_spacesphp-cs-fixerformat/operators/unary-spacing

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

use_arrow_functionsphp-cs-fixerlint/style/prefer-arrow-function

Merged with prefer-arrow-function.

visibility_requiredphp-cs-fixerNot supported

deprecated upstream; successor: modifier_keywords

void_returnphp-cs-fixerlint/types/add-void-return-type

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

whitespace_after_comma_in_arrayphp-cs-fixerformat/arrays/space-after-comma

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

yield_from_array_to_yieldsphp-cs-fixerlint/style/no-redundant-yield-from

Merged with no-redundant-yield-from.

yoda_stylephp-cs-fixerformat/control-flow/yoda

Merged with yoda-conditions. Options: renamed for TOML: [options."format/control-flow/yoda"].

Pint/laravel_bladeformat/laravel/blade

Same. Options: same.

Pint/phpdoc_type_annotations_onlylint/laravel/require-phpdoc-types-only

Same. Options: same.

Pint/prettier_cache_fingerprintNot supported

a no-op that carries Prettier package versions into Pint's cache signature; Pun has no cache

Unsupported rules

Doctrine rules: out of scope (Laravel-first)

doctrine_annotation_array_assignment, doctrine_annotation_braces, doctrine_annotation_indentation, doctrine_annotation_spaces.

a no-op that carries Prettier package versions into Pint’s cache signature; Pun has no cache

Pint/prettier_cache_fingerprint.

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?