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

Coming from mago

Config translation

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

pun migrate does not translate mago.toml yet. It reports the file as unsupported and leaves it alone. Pick the Pun rules by hand from the table.

Mago config Manual Pun equivalent
Formatter settings A [format] preset and explicit layout rules. Mago’s style is not a Pint preset
Linter rule codes Linked [lint.rules] or [format.rules] entries
Analyzer issue codes Linked analyse rule IDs, sometimes several per code
Exclusions [files] exclude, or exclusions under the matching command

Analyzer links go to Mago’s analyzer overview, because Mago’s docs have no page per analyzer code. Pun/* names are Pun’s ports of Mago rules, not Mago rule codes.

Rule mapping

545 of 545 upstream entries

UpstreamPun rule
Pun/final_controllerpunlint/laravel/require-final-controller

Merged with final-controller. Options: same.

Pun/no_onlypunlint/pest/no-only

Merged with RemoveOnly, no-only. Options: same.

Pun/no_redundant_issetpunlint/complexity/no-redundant-isset

Merged with no-redundant-isset. Options: same.

Pun/no_redundant_literal_returnpunlint/complexity/no-redundant-literal-return

Merged with no-redundant-literal-return. Options: same.

Pun/no_redundant_nullsafepunlint/complexity/no-redundant-nullsafe

Merged with NullsafeMethodCallRule, NullsafePropertyFetchRule, no-redundant-nullsafe and 2 others (see the rule's Replaces section). Options: same.

Pun/no_self_assignmentpunlint/dead-code/no-self-assignment

Merged with SimplifyMirrorAssign, no-self-assignment. Options: same.

Pun/prefer_array_spreadpunlint/arrays/prefer-array-spread

Merged with prefer-array-spread. Options: same.

Pun/prefer_array_validation_rulespunlint/laravel/prefer-array-validation-rules

Merged with ValidationRuleArrayStringValueToArray, prefer-array-validation-rules. Options: same.

Pun/prefer_dedicated_status_assertionpunlint/laravel/prefer-dedicated-status-assertion

Merged with AssertStatusToAssertMethod, prefer-dedicated-status-assertion. Options: same.

Pun/prefer_explode_over_preg_splitpunlint/performance/prefer-explode-over-preg-split

Merged with prefer-explode-over-preg-split. Options: same.

Pun/prefer_fake_helperpunlint/laravel/prefer-fake-helper

Merged with prefer-fake-helper. Options: same.

Pun/prefer_first_class_callablepunlint/php-8.1/prefer-first-class-callable

Merged with prefer-first-class-callable. Options: same.

Pun/sensitive_parameterpunlint/security/add-sensitive-parameter

Merged with sensitive-parameter. Options: same.

Pun/use_dedicated_expectationpunlint/pest/prefer-dedicated-expectation

Merged with use-dedicated-expectation. Options: same.

Pun/use_simpler_expectationpunlint/pest/prefer-simpler-expectation

Merged with SimplifyComparisonExpectations, use-simpler-expectation. Options: same.

Pun/use_specific_expectationspunlint/pest/prefer-specific-expectations

Merged with SimplifyToLiteralBoolean, use-specific-expectations. Options: same.

ambiguous-constant-accessmago-linterlint/style/no-ambiguous-constant

Same. Options: same.

ambiguous-function-callmago-linterlint/style/no-ambiguous-function

Same. Options: same.

array-stylemago-linterformat/arrays/syntax

Merged with array_syntax, LongArrayToShortArray. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

assert-descriptionmago-linterlint/functions/require-assert-description

Same. Options: same.

assertion-stylemago-linterlint/phpunit/require-assertion-style

Merged with php_unit_test_case_static_method_calls. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

block-statementmago-linterformat/control-flow/braces

Merged with control_structure_braces, CompleteMissingIfElseBracket. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

braced-string-interpolationmago-linterformat/strings/explicit-variable

Merged with explicit_string_variable. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

class-namemago-linterlint/style/require-naming-convention

Merged with constant-name, enum-name, function-name and 5 others (see the rule's Replaces section). Options: same.

combine-consecutive-issetsmago-linterlint/control-flow/prefer-combined-isset

Merged with combine_consecutive_issets. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

constant-conditionmago-linterlint/complexity/no-constant-condition

Merged with RemoveDeadIfBlock. Options: same.

constant-namemago-linterlint/style/require-naming-convention

Merged with class-name, enum-name, function-name and 5 others (see the rule's Replaces section). Options: same.

cyclomatic-complexitymago-linterlint/complexity/no-excessive-cyclomatic

Same. Options: same.

deprecated-castmago-linterformat/casts/short-scalar

Merged with short_scalar_cast, DeprecatedCastRule, cast.deprecated. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

deprecated-shell-execute-stringmago-linterformat/functions/backtick-to-shell-exec

Merged with backtick_to_shell_exec, ShellExecFunctionCallOverBackticks, BacktickRule and 4 others (see the rule's Replaces section). Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

deprecated-switch-semicolonmago-linterformat/control-flow/switch-case-colon

Merged with switch_case_semicolon_to_colon, ColonAfterSwitchCase. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

disallowed-functionsmago-linterlint/security/no-restricted-functions

Same. Options: same.

disallowed-type-instantiationmago-linterlint/security/no-restricted-instantiation

Same. Options: same.

enum-namemago-linterlint/style/require-naming-convention

Merged with class-name, constant-name, function-name and 5 others (see the rule's Replaces section). Options: same.

excessive-nestingmago-linterlint/complexity/no-excessive-nesting

Same. Options: same.

excessive-parameter-listmago-linterlint/complexity/no-excessive-parameters

Same. Options: same.

explicit-nullable-parammago-linterformat/types/nullable-for-null-default

Merged with nullable_type_declaration_for_default_null_value, ExplicitNullableParamType, parameter.implicitlyNullable. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

explicit-octalmago-linterformat/statements/octal-notation

Merged with octal_notation. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

file-namemago-linterlint/classes/require-class-matches-file

Merged with psr_autoloading. Options: same.

final-controllermago-linterlint/laravel/require-final-controller

Merged with Pun/final_controller. Options: same.

function-namemago-linterlint/style/require-naming-convention

Merged with class-name, constant-name, enum-name and 5 others (see the rule's Replaces section). Options: same.

halsteadmago-linterlint/complexity/no-excessive-halstead

Same. Options: same.

identity-comparisonmago-linterlint/types/no-loose-comparison

Merged with strict_comparison. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

ineffective-format-ignore-nextmago-linterNot supported

Mago formatter pragmas; Pun reports unused @pun-ignore itself (lint/comments/no-unused-ignore)

ineffective-format-ignore-regionmago-linterNot supported

Mago formatter pragmas; Pun reports unused @pun-ignore itself (lint/comments/no-unused-ignore)

inline-variable-returnmago-linterlint/control-flow/no-return-assignment

Merged with return_assignment, SimplifyUselessVariable. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

instanceof-stringablemago-linterlint/style/prefer-instanceof-stringable

Same. Options: same.

interface-namemago-linterlint/style/require-naming-convention

Merged with class-name, constant-name, enum-name and 5 others (see the rule's Replaces section). Options: same.

invalid-open-tagmago-linterlint/tags/no-invalid-open-tag

Same. Options: same.

kan-defectmago-linterlint/complexity/no-excessive-kan-defect

Same. Options: same.

literal-named-argumentmago-linterlint/complexity/prefer-named-literal-argument

Same. Options: same.

loop-does-not-iteratemago-linterlint/style/no-unreachable-loop

Same. Options: same.

lowercase-keywordmago-linterformat/casing/keywords

Merged with lowercase_keywords. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

lowercase-type-hintmago-linterformat/casing/native-types

Merged with native_type_declaration_casing. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

method-namemago-linterlint/style/require-naming-convention

Merged with class-name, constant-name, enum-name and 5 others (see the rule's Replaces section). Options: same.

middleware-in-routesmago-linterlint/laravel/no-controller-middleware

Same. Options: same.

missing-docsmago-linterlint/style/require-phpdoc

Same. Options: same.

no-alias-functionmago-linterlint/style/no-alias-function

Merged with no_alias_functions. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

no-alternative-syntaxmago-linterformat/control-flow/no-alternative-syntax

Merged with no_alternative_syntax, AlternativeIfToBracket. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

no-array-accumulation-in-loopmago-linterlint/style/no-array-accumulation-in-loop

Same. Options: same.

no-assign-in-argumentmago-linterlint/functions/no-assign-in-argument

Same. Options: same.

no-assign-in-conditionmago-linterlint/control-flow/no-assign-in-condition

Same. Options: same.

no-boolean-flag-parametermago-linterlint/complexity/no-boolean-flag-parameter

Same. Options: same.

no-closing-tagmago-linterformat/tags/no-closing

Merged with no_closing_tag, no-php-tag-terminator, whitespace.fileEnd. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

no-db-schema-changemago-linterNot supported

WordPress integration: out of scope (Laravel-first)

no-dead-storemago-linterlint/dead-code/no-unused-assignment

Merged with RemoveDoubleAssign, RemoveUnusedVariableAssign, no-redundant-variable. Options: same.

no-debug-symbolsmago-linterlint/security/no-debug-calls

Merged with RemoveDebugExpectations. Options: same.

no-direct-db-querymago-linterNot supported

WordPress integration: out of scope (Laravel-first)

no-duplicate-match-armmago-linterlint/complexity/no-duplicate-match-arm

Same. Options: same.

no-else-clausemago-linterlint/complexity/no-else-clause

Same. Options: same.

no-emptymago-linterlint/style/no-empty

Merged with DisallowedEmptyRule, empty.notAllowed. Options: same.

no-empty-catch-clausemago-linterlint/control-flow/no-empty-catch

Same. Options: same.

no-empty-commentmago-linterformat/comments/no-empty

Merged with no_empty_comment. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

no-empty-loopmago-linterlint/dead-code/no-empty-block

Merged with RemoveDeadIfForeachFor, RemoveDeadLoop. Options: same.

no-error-control-operatormago-linterlint/operators/no-error-suppression

Merged with error_suppression. Options: same.

no-evalmago-linterlint/security/no-eval

Same. Options: same.

no-ffimago-linterlint/security/no-ffi

Same. Options: same.

no-fully-qualified-global-class-likemago-linterformat/imports/global-namespace

Merged with global_namespace_import, no-fully-qualified-global-constant, no-fully-qualified-global-function. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

no-fully-qualified-global-constantmago-linterformat/imports/global-namespace

Merged with global_namespace_import, no-fully-qualified-global-class-like, no-fully-qualified-global-function. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

no-fully-qualified-global-functionmago-linterformat/imports/global-namespace

Merged with global_namespace_import, no-fully-qualified-global-class-like, no-fully-qualified-global-constant. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

no-globalmago-linterlint/security/no-global

Same. Options: same.

no-gotomago-linterlint/complexity/no-goto

Same. Options: same.

no-hash-commentmago-linterformat/comments/single-line-style

Merged with single_line_comment_style. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

no-hash-emojimago-linterlint/style/no-hash-emoji

Same. Options: same.

no-implicit-model-querymago-linterlint/laravel/no-implicit-model-query

Merged with EloquentMagicMethodToQueryBuilder. Options: same.

no-ini-setmago-linterlint/style/no-ini-set

Same. Options: same.

no-inlinemago-linterlint/style/no-inline-html

Same. Options: same.

no-insecure-comparisonmago-linterlint/security/no-insecure-comparison

Same. Options: same.

no-is-nullmago-linterlint/style/no-is-null

Merged with is_null. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

no-issetmago-linterlint/style/no-isset

Same. Options: same.

no-iterator-to-array-in-foreachmago-linterlint/complexity/no-iterator-to-array-in-foreach

Same. Options: same.

no-legacy-constructormago-linterlint/style/no-php4-constructor

Merged with no_php4_constructor, Php4Constructor. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

no-literal-namespace-stringmago-linterlint/style/prefer-class-constant

Merged with class_keyword, StringClassNameToClassConstant, UseClassKeywordForClassNameResolution. Options: same.

no-literal-passwordmago-linterlint/security/no-literal-password

Same. Options: same.

no-missing-format-argumentmago-linterlint/functions/no-missing-format-argument

Same. Options: same.

no-multi-assignmentsmago-linterlint/style/no-multi-assign

Merged with SplitDoubleAssign. Options: same.

no-negated-ternarymago-linterlint/refactor/no-negated-condition

Same. Options: same.

no-nested-ternarymago-linterlint/style/no-nested-ternary

Same. Options: same.

no-noopmago-linterlint/statements/no-empty

Merged with no_empty_statement. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

no-null-property-initmago-linterlint/classes/no-null-property-default

Merged with no_null_property_initialization, RemoveNullPropertyInitialization. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

no-onlymago-linterlint/pest/no-only

Merged with Pun/no_only, RemoveOnly. Options: same.

no-parameter-shadowingmago-linterlint/style/no-parameter-shadowing

Same. Options: same.

no-php-tag-terminatormago-linterformat/tags/no-closing

Merged with no_closing_tag, no-closing-tag, whitespace.fileEnd. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

no-protected-in-finalmago-linterlint/classes/no-protected-in-final

Merged with protected_to_private. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

no-redundant-binary-string-prefixmago-linterformat/strings/no-binary

Merged with no_binary_string. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

no-redundant-blockmago-linterformat/control-flow/no-unneeded-braces

Merged with no_unneeded_braces, ReplaceBlockToItsStmts. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

no-redundant-continuemago-linterlint/dead-code/no-useless-continue

Merged with RemoveDeadContinue. Options: same.

no-redundant-elsemago-linterlint/control-flow/no-useless-else

Merged with no_useless_else. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

no-redundant-filemago-linterlint/complexity/no-empty-file

Same. Options: same.

no-redundant-finalmago-linterlint/style/no-redundant-final

Merged with no_unneeded_final_method, FinalPrivateToPrivateVisibility. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

no-redundant-issetmago-linterlint/complexity/no-redundant-isset

Merged with Pun/no_redundant_isset. Options: same.

no-redundant-labelmago-linterlint/complexity/no-unused-label

Merged with UnusedLabelRule, label.unused. Options: same.

no-redundant-literal-returnmago-linterlint/complexity/no-redundant-literal-return

Merged with Pun/no_redundant_literal_return. Options: same.

no-redundant-mathmago-linterlint/dead-code/no-useless-math

Merged with RemoveDeadZeroAndOneOperation. Options: same.

no-redundant-method-overridemago-linterlint/dead-code/no-useless-override

Merged with RemoveParentDelegatingClassMethod. Options: same.

no-redundant-nullsafemago-linterlint/complexity/no-redundant-nullsafe

Merged with Pun/no_redundant_nullsafe, NullsafeMethodCallRule, NullsafePropertyFetchRule and 2 others (see the rule's Replaces section). Options: same.

no-redundant-parenthesesmago-linterformat/control-flow/no-unneeded-parentheses

Merged with no_unneeded_control_parentheses. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

no-redundant-readonlymago-linterlint/classes/no-redundant-readonly

Merged with no_redundant_readonly_property, RemoveReadonlyPropertyVisibilityOnReadonlyClass. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

no-redundant-string-concatmago-linterformat/operators/no-useless-concat

Merged with no_useless_concat_operator. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

no-redundant-usemago-linterlint/imports/no-unused

Merged with no_unused_imports. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

no-redundant-variablemago-linterlint/dead-code/no-unused-assignment

Merged with RemoveDoubleAssign, RemoveUnusedVariableAssign, no-dead-store. Options: same.

no-redundant-write-visibilitymago-linterlint/complexity/no-redundant-write-visibility

Same. Options: same.

no-redundant-yield-frommago-linterlint/style/no-redundant-yield-from

Merged with yield_from_array_to_yields. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

no-request-allmago-linterlint/laravel/no-request-all

Same. Options: same.

no-request-variablemago-linterlint/security/no-request-variable

Same. Options: same.

no-roles-as-capabilitiesmago-linterNot supported

WordPress integration: out of scope (Laravel-first)

no-self-assignmentmago-linterlint/dead-code/no-self-assignment

Merged with Pun/no_self_assignment, SimplifyMirrorAssign. Options: same.

no-service-state-mutationmago-linterNot supported

Symfony integration: out of scope (Laravel-first)

no-shell-execute-stringmago-linterformat/functions/backtick-to-shell-exec

Merged with backtick_to_shell_exec, ShellExecFunctionCallOverBackticks, BacktickRule and 4 others (see the rule's Replaces section). Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

no-short-bool-castmago-linterformat/casts/no-short-bool

Merged with no_short_bool_cast, ReplaceMultipleBooleanNot. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

no-short-opening-tagmago-linterformat/tags/full-opening

Merged with full_opening_tag. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

no-shorthand-ternarymago-linterlint/style/no-short-ternary

Merged with DisallowedShortTernaryRule, ternary.shortNotAllowed. Options: same.

no-side-effects-with-declarationsmago-linterlint/style/no-side-effects-with-declarations

Same. Options: same.

no-sprintf-concatmago-linterlint/style/no-sprintf-concat

Same. Options: same.

no-trailing-spacemago-linterformat/comments/no-trailing-whitespace

Merged with no_trailing_whitespace_in_comment. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

no-underscore-classmago-linterlint/classes/no-underscore-class

Same. Options: same.

no-unescaped-outputmago-linterNot supported

WordPress integration: out of scope (Laravel-first)

no-unsafe-finallymago-linterlint/control-flow/no-unsafe-finally

Same. Options: same.

no-unused-closure-capturemago-linterlint/functions/no-unused-closure-use

Merged with lambda_not_used_import, RemoveUnusedClosureVariableUse, UnusedClosureUsesRule and 2 others (see the rule's Replaces section). Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

no-unused-globalmago-linterlint/dead-code/no-unused-global

Same. Options: same.

no-unused-return-valuemago-linterlint/dead-code/no-unused-return-value

Same. Options: same.

no-unused-staticmago-linterlint/dead-code/no-unused-static

Same. Options: same.

no-variable-variablemago-linterlint/style/no-variable-variable

Merged with VariableVariablesRule, variable.dynamicName. Options: same.

no-void-reference-returnmago-linterlint/functions/no-void-reference-return

Same. Options: same.

nonce-verificationmago-linterNot supported

WordPress integration: out of scope (Laravel-first)

optional-param-ordermago-linterlint/functions/no-required-after-optional

Merged with OptionalParametersAfterRequired, parameter.requiredAfterOptional. Options: same.

prefer-anonymous-migrationmago-linterlint/laravel/prefer-anonymous-migration

Merged with AnonymousMigrations. Options: same.

prefer-array-spreadmago-linterlint/arrays/prefer-array-spread

Merged with Pun/prefer_array_spread. Options: same.

prefer-array-validation-rulesmago-linterlint/laravel/prefer-array-validation-rules

Merged with Pun/prefer_array_validation_rules, ValidationRuleArrayStringValueToArray. Options: same.

prefer-arrow-functionmago-linterlint/style/prefer-arrow-function

Merged with use_arrow_functions. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

prefer-casts-methodmago-linterlint/laravel/prefer-casts-method

Same. Options: same.

prefer-datetimeimmutable-create-from-timestampmago-linterlint/style/prefer-create-from-timestamp

Same. Options: same.

prefer-dedicated-status-assertionmago-linterlint/laravel/prefer-dedicated-status-assertion

Merged with Pun/prefer_dedicated_status_assertion, AssertStatusToAssertMethod. Options: same.

prefer-early-continuemago-linterlint/style/prefer-early-continue

Same. Options: same.

prefer-early-returnmago-linterlint/style/prefer-early-return

Merged with ChangeIfElseValueAssignToEarlyReturn. Options: same.

prefer-explode-over-preg-splitmago-linterlint/performance/prefer-explode-over-preg-split

Merged with Pun/prefer_explode_over_preg_split. Options: same.

prefer-fake-helpermago-linterlint/laravel/prefer-fake-helper

Merged with Pun/prefer_fake_helper. Options: same.

prefer-first-class-callablemago-linterlint/php-8.1/prefer-first-class-callable

Merged with Pun/prefer_first_class_callable. Options: same.

prefer-interfacemago-linterNot supported

Symfony integration: out of scope (Laravel-first)

prefer-null-coalescing-assignmentmago-linterlint/operators/prefer-coalesce-assign-over-fallback

Same. Options: same.

prefer-pre-incrementmago-linterformat/operators/increment-style

Merged with increment_style. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

prefer-selfmago-linterlint/style/prefer-self-reference

Merged with self_accessor, prefer-self-return-type. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

prefer-self-return-typemago-linterlint/style/prefer-self-reference

Merged with self_accessor, prefer-self. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

prefer-static-closuremago-linterlint/performance/prefer-static-closure

Merged with static_lambda. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

prefer-test-attributemago-linterlint/phpunit/prefer-test-attribute

Same. Options: same.

prefer-view-arraymago-linterlint/laravel/prefer-view-array

Same. Options: same.

prefer-while-loopmago-linterlint/style/prefer-while-loop

Same. Options: same.

prepared-sqlmago-linterNot supported

WordPress integration: out of scope (Laravel-first)

property-namemago-linterlint/style/require-naming-convention

Merged with class-name, constant-name, enum-name and 5 others (see the rule's Replaces section). Options: same.

psl-array-functionsmago-linterNot supported

Psl integration: out of scope (Laravel-first)

psl-data-structuresmago-linterNot supported

Psl integration: out of scope (Laravel-first)

psl-datetimemago-linterNot supported

Psl integration: out of scope (Laravel-first)

psl-math-functionsmago-linterNot supported

Psl integration: out of scope (Laravel-first)

psl-outputmago-linterNot supported

Psl integration: out of scope (Laravel-first)

psl-randomness-functionsmago-linterNot supported

Psl integration: out of scope (Laravel-first)

psl-regex-functionsmago-linterNot supported

Psl integration: out of scope (Laravel-first)

psl-sleep-functionsmago-linterNot supported

Psl integration: out of scope (Laravel-first)

psl-string-functionsmago-linterNot supported

Psl integration: out of scope (Laravel-first)

readable-literalmago-linterformat/statements/numeric-literal-separator

Merged with numeric_literal_separator. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

redundant-staticmago-linterlint/classes/prefer-self-in-final

Merged with self_static_accessor, ConvertStaticToSelf, StaticToSelfOnFinalClass. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

require-namespacemago-linterlint/style/require-namespace

Same. Options: same.

require-preg-quote-delimitermago-linterlint/security/require-preg-quote-delimiter

Same. Options: same.

sensitive-parametermago-linterlint/security/add-sensitive-parameter

Merged with Pun/sensitive_parameter. Options: same.

single-class-per-filemago-linterlint/style/no-multiple-classes-per-file

Same. Options: same.

sorted-integer-keysmago-linterlint/style/require-sorted-integer-keys

Same. Options: same.

str-containsmago-linterlint/style/prefer-str-contains

Merged with modernize_strpos, StrContains, str-starts-with. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

str-starts-withmago-linterlint/style/prefer-str-contains

Merged with modernize_strpos, StrContains, str-contains. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

strict-assertionsmago-linterlint/phpunit/prefer-assert-same

Merged with php_unit_strict, AssertEqualsToSame. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

strict-behaviormago-linterlint/types/require-strict-param

Merged with strict_param. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

strict-typesmago-linterlint/statements/require-strict-types

Merged with declare_strict_types. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

string-stylemago-linterlint/strings/require-interpolation-style

Same. Options: same.

suspicious-explode-argumentsmago-linterlint/functions/no-swapped-explode-arguments

Same. Options: same.

switch-continue-to-breakmago-linterlint/control-flow/no-switch-continue

Merged with switch_continue_to_break, ContinueToBreakInSwitch. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

tagged-fixmemago-linterlint/style/require-todo-reference

Merged with tagged-todo. Options: same.

tagged-todomago-linterlint/style/require-todo-reference

Merged with tagged-fixme. Options: same.

tainted-data-to-sinkmago-linterlint/security/no-tainted-data

Same. Options: same.

too-many-enum-casesmago-linterlint/complexity/no-excessive-enum-cases

Same. Options: same.

too-many-methodsmago-linterlint/complexity/no-excessive-methods

Same. Options: same.

too-many-propertiesmago-linterlint/complexity/no-excessive-properties

Same. Options: same.

trait-namemago-linterlint/style/require-naming-convention

Merged with class-name, constant-name, enum-name and 5 others (see the rule's Replaces section). Options: same.

use-compound-assignmentmago-linterlint/style/prefer-compound-assignment

Merged with long_to_shorthand_operator, CombinedAssign. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

use-dedicated-expectationmago-linterlint/pest/prefer-dedicated-expectation

Merged with Pun/use_dedicated_expectation. Options: same.

use-simpler-expectationmago-linterlint/pest/prefer-simpler-expectation

Merged with Pun/use_simpler_expectation, SimplifyComparisonExpectations. Options: same.

use-specific-assertionsmago-linterlint/phpunit/prefer-specific-assertions

Merged with php_unit_construct. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

use-specific-expectationsmago-linterlint/pest/prefer-specific-expectations

Merged with Pun/use_specific_expectations, SimplifyToLiteralBoolean. Options: same.

use-wp-functionsmago-linterNot supported

WordPress integration: out of scope (Laravel-first)

valid-docblockmago-linterlint/style/no-invalid-phpdoc

Same. Options: same.

validated-sanitized-inputmago-linterNot supported

WordPress integration: out of scope (Laravel-first)

variable-namemago-linterlint/style/require-naming-convention

Merged with class-name, constant-name, enum-name and 5 others (see the rule's Replaces section). Options: same.

yoda-conditionsmago-linterformat/control-flow/yoda

Merged with yoda_style. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).

AbstractClassUsedAsAttributemago-analyzeranalyse/attributes/invalid

Merged with NonClassAttributeClassRule, AttributeNotRepeatable, ClassNotMarkedAsAttribute and 7 others (see the rule's Replaces section).

AbstractInstantiationmago-analyzeranalyse/classes/invalid-new

Merged with InstantiationRule, EnumInstantiation, InterfaceInstantiation and 12 others (see the rule's Replaces section). Planned: not ported yet.

AlwaysMatchingSwitchCasemago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

AmbiguousClassLikeConstantAccessmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

AmbiguousInstantiationTargetmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

AmbiguousObjectMethodAccessmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

AmbiguousObjectPropertyAccessmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

ArrayAppendInReadContextmago-analyzeranalyse/arrays/read-without-offset

Merged with OffsetAccessWithoutDimForReadingRule, offsetAccess.noDim.

ArrayAppendOverflowmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

ArrayToIntCastmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

ArrayToStringConversionmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

AssignmentToConstantmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

AssignmentToThismago-analyzeranalyse/types/assign-to-this

Merged with InvalidVariableAssignRule, assign.this.

AttributeNotRepeatablemago-analyzeranalyse/attributes/invalid

Merged with NonClassAttributeClassRule, AbstractClassUsedAsAttribute, ClassNotMarkedAsAttribute and 7 others (see the rule's Replaces section).

AvoidCatchingErrormago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

BackedPropertyReferenceHookmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

CatchTypeNotThrowablemago-analyzeranalyse/types/catch-non-throwable

Merged with CaughtExceptionExistenceRule, InvalidCatchType, InvalidCatchTypeNotClassOrInterface and 2 others (see the rule's Replaces section).

ClassMustBeFinalmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

ClassNotMarkedAsAttributemago-analyzeranalyse/attributes/invalid

Merged with NonClassAttributeClassRule, AbstractClassUsedAsAttribute, AttributeNotRepeatable and 7 others (see the rule's Replaces section).

CloneInsideLoopmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

ConditionIsTooComplexmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

ConflictingReferenceConstraintmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

ConflictingTemplateEqualityBoundsmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

DeadCatchmago-analyzeranalyse/types/dead-catch

Merged with CatchWithUnthrownExceptionRule, DuplicateCaughtType, catch.alreadyCaught and 1 others (see the rule's Replaces section).

DeprecatedClassmago-analyzeranalyse/deprecated/class

Merged with RestrictedDeprecatedClassNameUsageExtension, catch.deprecatedClass, catch.deprecatedEnum and 35 others (see the rule's Replaces section).

DeprecatedClassConstantmago-analyzeranalyse/deprecated/class-constant

Merged with RestrictedDeprecatedClassConstantUsageExtension, classConstant.deprecated, enumCase.deprecated.

DeprecatedClosuremago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

DeprecatedConstantmago-analyzeranalyse/deprecated/constant

Merged with FetchingDeprecatedConstRule, constant.deprecated.

DeprecatedFeaturemago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

DeprecatedFunctionmago-analyzeranalyse/deprecated/function

Merged with RestrictedDeprecatedFunctionUsageExtension, function.deprecated.

DeprecatedMethodmago-analyzeranalyse/deprecated/method

Merged with RestrictedDeprecatedMethodUsageExtension, method.deprecated, staticMethod.deprecated.

DeprecatedPropertymago-analyzeranalyse/deprecated/property

Merged with RestrictedDeprecatedPropertyUsageExtension, property.deprecated, staticProperty.deprecated.

DeprecatedTraitmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

DirectTraitConstantAccessmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

DocblockParameterNarrowingmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

DocblockTypeMismatchmago-analyzeranalyse/phpdoc/type-mismatch

Merged with IncompatiblePhpDocTypeRule, paramClosureThis.nonClosure, parameter.phpDocType and 3 others (see the rule's Replaces section).

DuplicateArrayKeymago-analyzerlint/dead-code/no-duplicate-array-key

Merged with RemoveDuplicatedArrayKey, DuplicateKeysInLiteralArraysRule, array.duplicateKey.

DuplicateCaughtTypemago-analyzeranalyse/types/dead-catch

Merged with CatchWithUnthrownExceptionRule, DeadCatch, catch.alreadyCaught and 1 others (see the rule's Replaces section).

DuplicateClosureUseVariablemago-analyzeranalyse/functions/invalid-closure-use

Merged with InvalidLexicalVariablesInClosureUseRule, closure.useDuplicate, closure.useSuperGlobal and 1 others (see the rule's Replaces section).

DuplicateDefinitionmago-analyzeranalyse/classes/duplicate-declaration

Merged with DuplicateDeclarationRule, class.duplicate, class.duplicateConstant and 19 others (see the rule's Replaces section).

DuplicateEnumCaseValuemago-analyzeranalyse/classes/invalid-enum

Merged with EnumSanityRule, InvalidEnumCaseValue, enum.backingType and 9 others (see the rule's Replaces section).

DuplicateNamedArgumentmago-analyzeranalyse/types/argument

Merged with CallToFunctionParametersRule, checkArgumentsPassedByReference, checkExtraArguments and 56 others (see the rule's Replaces section).

DuplicateSwitchCasemago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

DynamicStaticMethodCallmago-analyzeranalyse/classes/dynamic-static-call

Merged with DynamicCallOnStaticMethodsRule, staticMethod.dynamicCall.

EmptyMatchExpressionmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

EnumInstantiationmago-analyzeranalyse/classes/invalid-new

Merged with InstantiationRule, AbstractInstantiation, InterfaceInstantiation and 12 others (see the rule's Replaces section). Planned: not ported yet.

EnumIterationmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

ExcessTemplateParametermago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

ExperimentalUsagemago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

ExpressionIsTooComplexmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

ExtendFinalClassmago-analyzeranalyse/classes/invalid-extends

Merged with ExistingClassInClassExtendsRule, InvalidExtend, InvalidImplement and 11 others (see the rule's Replaces section).

FalsableReturnStatementmago-analyzeranalyse/types/return

Merged with Methods\ReturnTypeRule, InvalidReturnStatement, LessSpecificReturnStatement and 3 others (see the rule's Replaces section).

FalseArgumentmago-analyzeranalyse/types/argument

Merged with CallToFunctionParametersRule, checkArgumentsPassedByReference, checkExtraArguments and 56 others (see the rule's Replaces section).

FalseArrayAccessmago-analyzeranalyse/arrays/invalid-destructuring

Merged with ArrayDestructuringRule, InvalidArrayAccess, MixedArrayAccess and 5 others (see the rule's Replaces section).

FalseIteratormago-analyzeranalyse/types/foreach-non-iterable

Merged with IterableInForeachRule, InvalidIterator, NonIterableObjectIteration and 5 others (see the rule's Replaces section).

FalseOperandmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

GenericObjectIterationmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

HiddenGeneratorReturnmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

ImplicitFloatToIntCastmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

ImplicitResourceToStringCastmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

ImplicitToStringCastmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

ImpossibleArrayAccessmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

ImpossibleArrayAssignmentmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

ImpossibleAssignmentmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

ImpossibleConditionmago-analyzeranalyse/dead-code/impossible-type-check

Merged with ImpossibleCheckTypeFunctionCallRule, ImpossibleNullTypeComparison, ImpossibleTypeComparison and 5 others (see the rule's Replaces section).

ImpossibleKeyCheckmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

ImpossibleNonnullEntryCheckmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

ImpossibleNullTypeComparisonmago-analyzeranalyse/dead-code/impossible-type-check

Merged with ImpossibleCheckTypeFunctionCallRule, ImpossibleCondition, ImpossibleTypeComparison and 5 others (see the rule's Replaces section).

ImpossibleTypeComparisonmago-analyzeranalyse/dead-code/impossible-type-check

Merged with ImpossibleCheckTypeFunctionCallRule, ImpossibleCondition, ImpossibleNullTypeComparison and 5 others (see the rule's Replaces section).

ImpreciseTypemago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

ImpureConstructmago-analyzeranalyse/classes/incompatible-override

Merged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureStaticVariable and 48 others (see the rule's Replaces section).

ImpureStaticVariablemago-analyzeranalyse/classes/incompatible-override

Merged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureConstruct and 48 others (see the rule's Replaces section).

IncompatibleConstantAccessmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

IncompatibleConstantOverridemago-analyzeranalyse/classes/incompatible-override

Merged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureConstruct and 48 others (see the rule's Replaces section).

IncompatibleConstantTypemago-analyzeranalyse/classes/incompatible-override

Merged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureConstruct and 48 others (see the rule's Replaces section).

IncompatibleConstantVisibilitymago-analyzeranalyse/classes/incompatible-override

Merged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureConstruct and 48 others (see the rule's Replaces section).

IncompatibleParameterCountmago-analyzeranalyse/classes/incompatible-override

Merged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureConstruct and 48 others (see the rule's Replaces section).

IncompatibleParameterNamemago-analyzeranalyse/types/renamed-parameter-in-subtype

Merged with MethodCallWithPossiblyRenamedNamedArgumentRule, argument.parameterRenamedInSubtype.

IncompatibleParameterTypemago-analyzeranalyse/classes/incompatible-override

Merged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureConstruct and 48 others (see the rule's Replaces section).

IncompatiblePropertyAccessmago-analyzeranalyse/classes/incompatible-property-override

Merged with OverridingPropertyRule, InvalidOverrideAttribute, InvalidStaticMethodCall and 26 others (see the rule's Replaces section).

IncompatiblePropertyDefaultmago-analyzeranalyse/types/property-default

Merged with DefaultValueTypesAssignedToPropertiesRule, InvalidPropertyDefaultValue, property.defaultValue.

IncompatiblePropertyHookParameterTypemago-analyzeranalyse/classes/invalid-property-hook

Merged with SetPropertyHookParameterRule, propertySetHook.nativeParameterType, propertySetHook.parameterType.

IncompatiblePropertyHookSignaturemago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

IncompatiblePropertyOverridemago-analyzeranalyse/classes/incompatible-override

Merged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureConstruct and 48 others (see the rule's Replaces section).

IncompatiblePropertyReadonlymago-analyzeranalyse/classes/incompatible-override

Merged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureConstruct and 48 others (see the rule's Replaces section).

IncompatiblePropertyStaticmago-analyzeranalyse/classes/incompatible-override

Merged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureConstruct and 48 others (see the rule's Replaces section).

IncompatiblePropertyTypemago-analyzeranalyse/classes/incompatible-override

Merged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureConstruct and 48 others (see the rule's Replaces section).

IncompatiblePropertyVisibilitymago-analyzeranalyse/classes/incompatible-override

Merged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureConstruct and 48 others (see the rule's Replaces section).

IncompatibleReadonlyModifiermago-analyzeranalyse/classes/incompatible-overrideanalyse/classes/incompatible-property-override

Merged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureConstruct and 48 others (see the rule's Replaces section).

IncompatibleReturnTypemago-analyzeranalyse/classes/incompatible-override

Merged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureConstruct and 48 others (see the rule's Replaces section).

IncompatibleStaticModifiermago-analyzeranalyse/classes/incompatible-overrideanalyse/classes/incompatible-property-override

Merged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureConstruct and 48 others (see the rule's Replaces section).

IncompatibleTemplateLowerBoundmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

IncompatibleThrowTypemago-analyzeranalyse/types/throws-not-covariant

Merged with MethodThrowTypeCovarianceRule, throws.notCovariant, throws.notCovariantWithImplicitVoid and 1 others (see the rule's Replaces section).

IncompatibleVisibilitymago-analyzeranalyse/classes/incompatible-override

Merged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureConstruct and 48 others (see the rule's Replaces section).

InconsistentTemplatemago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

IncorrectClassLikeCasingmago-analyzeranalyse/undefined/group-import

Merged with ExistingNamesInGroupUseRule, checkClassCaseSensitivity, IncorrectFunctionCasing and 5 others (see the rule's Replaces section).

IncorrectFunctionCasingmago-analyzeranalyse/undefined/group-import

Merged with ExistingNamesInGroupUseRule, checkClassCaseSensitivity, IncorrectClassLikeCasing and 5 others (see the rule's Replaces section).

InterfaceInstantiationmago-analyzeranalyse/classes/invalid-new

Merged with InstantiationRule, AbstractInstantiation, EnumInstantiation and 12 others (see the rule's Replaces section). Planned: not ported yet.

InvalidArgumentmago-analyzeranalyse/types/argument

Merged with CallToFunctionParametersRule, checkArgumentsPassedByReference, checkExtraArguments and 56 others (see the rule's Replaces section).

InvalidArrayAccessmago-analyzeranalyse/arrays/invalid-destructuring

Merged with ArrayDestructuringRule, FalseArrayAccess, MixedArrayAccess and 5 others (see the rule's Replaces section).

InvalidArrayAccessAssignmentValuemago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

InvalidArrayElementmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

InvalidArrayElementKeymago-analyzeranalyse/arrays/invalid-array-key

Merged with InvalidKeyInArrayItemRule, array.invalidKey.

InvalidArrayIndexmago-analyzeranalyse/types/invalid-offset

Merged with InvalidKeyInArrayDimFetchRule, MixedArrayIndex, NullArrayIndex and 3 others (see the rule's Replaces section).

InvalidAssignmentmago-analyzeranalyse/types/invalid-assignment-target

Merged with InvalidAssignVarRule, assign.invalidExpr, nullsafe.assign and 1 others (see the rule's Replaces section).

InvalidAttributeTargetmago-analyzeranalyse/attributes/invalid

Merged with NonClassAttributeClassRule, AbstractClassUsedAsAttribute, AttributeNotRepeatable and 7 others (see the rule's Replaces section).

InvalidBreakmago-analyzeranalyse/control-flow/break-outside-loop

Merged with ContinueBreakInLoopRule, InvalidContinue, break.outOfLoop and 1 others (see the rule's Replaces section).

InvalidCallablemago-analyzeranalyse/phpdoc/invalid-param-callable-tag

Merged with IncompatibleParamImmediatelyInvokedCallableRule, paramImmediatelyInvokedCallable.nonCallable, paramLaterInvokedCallable.nonCallable and 1 others (see the rule's Replaces section).

InvalidCatchTypemago-analyzeranalyse/types/catch-non-throwable

Merged with CaughtExceptionExistenceRule, CatchTypeNotThrowable, InvalidCatchTypeNotClassOrInterface and 2 others (see the rule's Replaces section).

InvalidCatchTypeNotClassOrInterfacemago-analyzeranalyse/types/catch-non-throwable

Merged with CaughtExceptionExistenceRule, CatchTypeNotThrowable, InvalidCatchType and 2 others (see the rule's Replaces section).

InvalidClassConstantOnStringmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

InvalidClassStringExpressionmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

InvalidClonemago-analyzeranalyse/types/clone-non-object

Merged with VariableCloningRule, clone.nonObject.

InvalidConstantAccessmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

InvalidConstantSelectormago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

InvalidConstantValuemago-analyzeranalyse/types/define-value

Merged with ValueAssignedToDefineRule, constant.defineValue.

InvalidContinuemago-analyzeranalyse/control-flow/break-outside-loop

Merged with ContinueBreakInLoopRule, InvalidBreak, break.outOfLoop and 1 others (see the rule's Replaces section).

InvalidDestructuringSourcemago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

InvalidDocblockmago-analyzeranalyse/phpdoc/invalid

Merged with InvalidPhpDocTagValueRule, phpDoc.parseError.

InvalidEnumCaseValuemago-analyzeranalyse/classes/invalid-enum

Merged with EnumSanityRule, DuplicateEnumCaseValue, enum.backingType and 9 others (see the rule's Replaces section).

InvalidExtendmago-analyzeranalyse/classes/invalid-extends

Merged with ExistingClassInClassExtendsRule, ExtendFinalClass, InvalidImplement and 11 others (see the rule's Replaces section).

InvalidForeachKeymago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

InvalidForeachValuemago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

InvalidGeneratorReturnTypemago-analyzeranalyse/types/generator

Merged with YieldTypeRule, InvalidYieldKeyType, InvalidYieldValueType and 6 others (see the rule's Replaces section).

InvalidGlobalmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

InvalidImplementmago-analyzeranalyse/classes/invalid-extends

Merged with ExistingClassInClassExtendsRule, ExtendFinalClass, InvalidExtend and 11 others (see the rule's Replaces section).

InvalidIssetExpressionmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

InvalidIteratormago-analyzeranalyse/types/foreach-non-iterable

Merged with IterableInForeachRule, FalseIterator, NonIterableObjectIteration and 5 others (see the rule's Replaces section).

InvalidMemberSelectormago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

InvalidMethodAccessmago-analyzeranalyse/classes/invalid-new

Merged with InstantiationRule, AbstractInstantiation, EnumInstantiation and 12 others (see the rule's Replaces section). Planned: not ported yet.

InvalidNamedArgumentmago-analyzeranalyse/types/argument

Merged with CallToFunctionParametersRule, checkArgumentsPassedByReference, checkExtraArguments and 56 others (see the rule's Replaces section).

InvalidOperandmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

InvalidOverrideAttributemago-analyzeranalyse/classes/incompatible-property-override

Merged with OverridingPropertyRule, IncompatiblePropertyAccess, InvalidStaticMethodCall and 26 others (see the rule's Replaces section).

InvalidParameterDefaultValuemago-analyzeranalyse/types/param-default

Merged with Functions\IncompatibleDefaultParameterTypeRule, parameter.defaultValue.

InvalidParentTypemago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

InvalidPassByReferencemago-analyzeranalyse/types/argument

Merged with CallToFunctionParametersRule, checkArgumentsPassedByReference, checkExtraArguments and 56 others (see the rule's Replaces section).

InvalidPropertyAccessmago-analyzeranalyse/undefined/assigned-property

Merged with AccessPropertiesInAssignRule, MixedPropertyAccess, NullPropertyAccess and 5 others (see the rule's Replaces section).

InvalidPropertyAssignmentValuemago-analyzeranalyse/types/property-assign

Merged with TypesAssignedToPropertiesRule, InvalidPropertyWrite, MixedPropertyTypeCoercion and 3 others (see the rule's Replaces section).

InvalidPropertyDefaultValuemago-analyzeranalyse/types/property-default

Merged with DefaultValueTypesAssignedToPropertiesRule, IncompatiblePropertyDefault, property.defaultValue.

InvalidPropertyReadmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

InvalidPropertyWritemago-analyzeranalyse/types/property-assignanalyse/types/invalid-property-assignmentanalyse/types/write-to-readonly-propertyanalyse/types/readonly-property-writeanalyse/classes/uninitialized-phpdoc-readonly

Merged with TypesAssignedToPropertiesRule, InvalidPropertyAssignmentValue, MixedPropertyTypeCoercion and 3 others (see the rule's Replaces section).

InvalidReturnStatementmago-analyzeranalyse/types/return

Merged with Methods\ReturnTypeRule, FalsableReturnStatement, LessSpecificReturnStatement and 3 others (see the rule's Replaces section).

InvalidScopeKeywordContextmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

InvalidStaticMethodAccessmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

InvalidStaticMethodCallmago-analyzeranalyse/classes/incompatible-property-override

Merged with OverridingPropertyRule, IncompatiblePropertyAccess, InvalidOverrideAttribute and 26 others (see the rule's Replaces section).

InvalidStaticPropertyAccessmago-analyzeranalyse/classes/incompatible-property-override

Merged with OverridingPropertyRule, IncompatiblePropertyAccess, InvalidOverrideAttribute and 26 others (see the rule's Replaces section).

InvalidTemplateParametermago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

InvalidThrowmago-analyzeranalyse/types/throw-non-throwable

Merged with ThrowExprTypeRule, throw.notThrowable.

InvalidTraitAliasModifiermago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

InvalidTraitUsemago-analyzeranalyse/classes/invalid-extends

Merged with ExistingClassInClassExtendsRule, ExtendFinalClass, InvalidExtend and 11 others (see the rule's Replaces section).

InvalidTypeCastmago-analyzeranalyse/types/invalid-cast

Merged with InvalidCastRule, cast.bool, cast.double and 2 others (see the rule's Replaces section).

InvalidUnsetmago-analyzeranalyse/types/invalid-unset

Merged with UnsetRule, unset.hookedProperty, unset.offset and 4 others (see the rule's Replaces section).

InvalidYieldKeyTypemago-analyzeranalyse/types/generator

Merged with YieldTypeRule, InvalidGeneratorReturnType, InvalidYieldValueType and 6 others (see the rule's Replaces section).

InvalidYieldValueTypemago-analyzeranalyse/types/generator

Merged with YieldTypeRule, InvalidGeneratorReturnType, InvalidYieldKeyType and 6 others (see the rule's Replaces section).

LessSpecificArgumentmago-analyzeranalyse/types/argument

Merged with CallToFunctionParametersRule, checkArgumentsPassedByReference, checkExtraArguments and 56 others (see the rule's Replaces section).

LessSpecificNestedArgumentTypemago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

LessSpecificNestedReturnStatementmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

LessSpecificReturnStatementmago-analyzeranalyse/types/return

Merged with Methods\ReturnTypeRule, FalsableReturnStatement, InvalidReturnStatement and 3 others (see the rule's Replaces section).

ListDestructureNegativeKeymago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

ListDestructureStringKeymago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

ListUsedInReadContextmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

MatchArmAlwaysTruemago-analyzeranalyse/dead-code/number-comparison-always-constant

Merged with NumberComparisonOperatorsConstantConditionRule, UnreachableElseClause, UnreachableMatchArm and 38 others (see the rule's Replaces section).

MatchDefaultArmAlwaysExecutedmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

MatchExpressionOnlyDefaultArmmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

MatchNotExhaustivemago-analyzeranalyse/control-flow/unhandled-match

Merged with MatchExpressionRule, match.alwaysFalse, match.alwaysTrue and 1 others (see the rule's Replaces section).

MatchSubjectTypeIsNevermago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

MethodAccessOnNullmago-analyzeranalyse/classes/invalid-method-callable

Merged with MethodCallableRule, MixedMethodAccess, PossibleMethodAccessOnNull and 3 others (see the rule's Replaces section).

MismatchedArrayIndexmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

MissingApiOrInternalmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

MissingConstantTypemago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

MissingConstructormago-analyzeranalyse/classes/uninitialized-property

Merged with UninitializedPropertyRule, UninitializedProperty, property.uninitialized.

MissingMagicMethodmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

MissingOverrideAttributemago-analyzeranalyse/classes/incompatible-override

Merged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureConstruct and 48 others (see the rule's Replaces section).

MissingParameterTypemago-analyzeranalyse/types/missing-param-type

Merged with MissingFunctionParameterTypehintRule, missingType.parameter.

MissingPropertyTypemago-analyzeranalyse/types/missing-property-type

Merged with MissingPropertyTypehintRule, missingType.property.

MissingRequiredInterfacemago-analyzeranalyse/classes/missing-required-parent

Merged with RequireExtendsRule, MissingRequiredParent, class.missingExtends.

MissingRequiredParentmago-analyzeranalyse/classes/missing-required-parent

Merged with RequireExtendsRule, MissingRequiredInterface, class.missingExtends.

MissingReturnStatementmago-analyzeranalyse/types/missing-return

Merged with MissingReturnRule, checkPhpDocMissingReturn, NeverReturn and 2 others (see the rule's Replaces section).

MissingReturnTypemago-analyzeranalyse/types/missing-return-type

Merged with MissingFunctionReturnTypehintRule, checkMissingTypehints, missingType.return.

MissingTemplateParametermago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

MixedArgumentmago-analyzeranalyse/types/argument

Merged with CallToFunctionParametersRule, checkArgumentsPassedByReference, checkExtraArguments and 56 others (see the rule's Replaces section).

MixedArrayAccessmago-analyzeranalyse/arrays/invalid-destructuring

Merged with ArrayDestructuringRule, FalseArrayAccess, InvalidArrayAccess and 5 others (see the rule's Replaces section).

MixedArrayAssignmentmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

MixedArrayIndexmago-analyzeranalyse/types/invalid-offset

Merged with InvalidKeyInArrayDimFetchRule, InvalidArrayIndex, NullArrayIndex and 3 others (see the rule's Replaces section).

MixedAssignmentmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

MixedClonemago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

MixedDestructuringShapemago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

MixedMethodAccessmago-analyzeranalyse/classes/invalid-method-callable

Merged with MethodCallableRule, MethodAccessOnNull, PossibleMethodAccessOnNull and 3 others (see the rule's Replaces section).

MixedOperandmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

MixedPropertyAccessmago-analyzeranalyse/undefined/assigned-property

Merged with AccessPropertiesInAssignRule, InvalidPropertyAccess, NullPropertyAccess and 5 others (see the rule's Replaces section).

MixedPropertyTypeCoercionmago-analyzeranalyse/types/property-assign

Merged with TypesAssignedToPropertiesRule, InvalidPropertyAssignmentValue, InvalidPropertyWrite and 3 others (see the rule's Replaces section).

MixedReturnStatementmago-analyzeranalyse/types/return

Merged with Methods\ReturnTypeRule, FalsableReturnStatement, InvalidReturnStatement and 3 others (see the rule's Replaces section).

NameAlreadyInUsemago-analyzeranalyse/imports/name-already-in-use

Merged with UsedNamesRule, class.nameInUse, enum.nameInUse and 3 others (see the rule's Replaces section).

NamedArgumentAfterPositionalmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

NamedArgumentNotAllowedmago-analyzeranalyse/types/argument

Merged with CallToFunctionParametersRule, checkArgumentsPassedByReference, checkExtraArguments and 56 others (see the rule's Replaces section).

NamedArgumentOverridesPositionalmago-analyzeranalyse/types/argument

Merged with CallToFunctionParametersRule, checkArgumentsPassedByReference, checkExtraArguments and 56 others (see the rule's Replaces section).

NeverMatchingSwitchCasemago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

NeverReturnmago-analyzeranalyse/types/missing-return

Merged with MissingReturnRule, checkPhpDocMissingReturn, MissingReturnStatement and 2 others (see the rule's Replaces section).

NoValidCatchTypeFoundmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

NoValuemago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

NonClassUsedAsAttributemago-analyzeranalyse/attributes/invalid

Merged with NonClassAttributeClassRule, AbstractClassUsedAsAttribute, AttributeNotRepeatable and 7 others (see the rule's Replaces section).

NonDocumentedConstantmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

NonDocumentedMethodmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

NonDocumentedPropertymago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

NonExistentAttributeClassmago-analyzeranalyse/attributes/invalid-class-constant-attribute

Merged with ClassConstantAttributesRule, attribute.deprecated, attribute.noConstructor and 3 others (see the rule's Replaces section).

NonExistentCatchTypemago-analyzeranalyse/types/invalid-pipe

Merged with PipeOperatorRule, NonExistentClass, NonExistentClassLike and 1 others (see the rule's Replaces section).

NonExistentClassmago-analyzeranalyse/types/invalid-pipe

Merged with PipeOperatorRule, NonExistentCatchType, NonExistentClassLike and 1 others (see the rule's Replaces section).

NonExistentClassConstantmago-analyzeranalyse/undefined/class-constant

Merged with ClassConstantRule, classConstant.deprecatedClass, classConstant.deprecatedEnum and 14 others (see the rule's Replaces section).

NonExistentClassLikemago-analyzeranalyse/types/invalid-pipeanalyse/undefined/trait

Merged with PipeOperatorRule, NonExistentCatchType, NonExistentClass and 1 others (see the rule's Replaces section).

NonExistentConstantmago-analyzeranalyse/undefined/constant

Merged with ConstantRule, constant.notFound.

NonExistentFunctionmago-analyzeranalyse/undefined/function

Merged with CallToNonExistentFunctionRule, function.notFound.

NonExistentMethodmago-analyzeranalyse/undefined/method

Merged with CallMethodsRule, checkThisOnly, reportMagicMethods and 3 others (see the rule's Replaces section).

NonExistentPropertymago-analyzeranalyse/undefined/propertyanalyse/undefined/assigned-propertyanalyse/undefined/static-propertyanalyse/undefined/assigned-static-property

Merged with AccessPropertiesRule, reportMagicProperties, PossiblyNonExistentProperty and 1 others (see the rule's Replaces section).

NonExistentUseImportmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

NonIterableObjectIterationmago-analyzeranalyse/types/foreach-non-iterable

Merged with IterableInForeachRule, FalseIterator, InvalidIterator and 5 others (see the rule's Replaces section).

NonStaticAbstractImplementationmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

NullArgumentmago-analyzeranalyse/types/argument

Merged with CallToFunctionParametersRule, checkArgumentsPassedByReference, checkExtraArguments and 56 others (see the rule's Replaces section).

NullArrayAccessmago-analyzeranalyse/arrays/invalid-destructuring

Merged with ArrayDestructuringRule, FalseArrayAccess, InvalidArrayAccess and 5 others (see the rule's Replaces section).

NullArrayIndexmago-analyzeranalyse/types/invalid-offset

Merged with InvalidKeyInArrayDimFetchRule, InvalidArrayIndex, MixedArrayIndex and 3 others (see the rule's Replaces section).

NullDestructuringSourcemago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

NullIteratormago-analyzeranalyse/types/foreach-non-iterable

Merged with IterableInForeachRule, FalseIterator, InvalidIterator and 5 others (see the rule's Replaces section).

NullOperandmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

NullPropertyAccessmago-analyzeranalyse/undefined/assigned-property

Merged with AccessPropertiesInAssignRule, InvalidPropertyAccess, MixedPropertyAccess and 5 others (see the rule's Replaces section).

NullableReturnStatementmago-analyzeranalyse/types/return

Merged with Methods\ReturnTypeRule, FalsableReturnStatement, InvalidReturnStatement and 3 others (see the rule's Replaces section).

OverlyWideReturnTypemago-analyzeranalyse/types/too-wide-arrow-function-return

Merged with TooWideArrowFunctionReturnTypehintRule, paramOut.nestedUnusedType, paramOut.tooWideBool and 9 others (see the rule's Replaces section).

OverrideFinalConstantmago-analyzeranalyse/classes/invalid-extendsanalyse/classes/incompatible-constant-override

Merged with ExistingClassInClassExtendsRule, ExtendFinalClass, InvalidExtend and 11 others (see the rule's Replaces section).

OverrideFinalMethodmago-analyzeranalyse/classes/invalid-extends

Merged with ExistingClassInClassExtendsRule, ExtendFinalClass, InvalidExtend and 11 others (see the rule's Replaces section).

OverrideFinalPropertymago-analyzeranalyse/classes/invalid-extends

Merged with ExistingClassInClassExtendsRule, ExtendFinalClass, InvalidExtend and 11 others (see the rule's Replaces section).

OverrideFinalPropertyHookmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

ParadoxicalConditionmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

ParentOutsideClassScopemago-analyzeranalyse/undefined/instanceof-class

Merged with ExistingClassInInstanceOfRule, SelfOutsideClassScope, StaticOutsideClassScope and 4 others (see the rule's Replaces section).

PossibleMethodAccessOnNullmago-analyzeranalyse/classes/invalid-method-callable

Merged with MethodCallableRule, MethodAccessOnNull, MixedMethodAccess and 3 others (see the rule's Replaces section).

PossiblyArrayAppendOverflowmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

PossiblyFalseArgumentmago-analyzeranalyse/types/argument

Merged with CallToFunctionParametersRule, checkArgumentsPassedByReference, checkExtraArguments and 56 others (see the rule's Replaces section).

PossiblyFalseArrayAccessmago-analyzeranalyse/arrays/invalid-destructuring

Merged with ArrayDestructuringRule, FalseArrayAccess, InvalidArrayAccess and 5 others (see the rule's Replaces section).

PossiblyFalseArrayIndexmago-analyzeranalyse/types/invalid-offset

Merged with InvalidKeyInArrayDimFetchRule, InvalidArrayIndex, MixedArrayIndex and 3 others (see the rule's Replaces section).

PossiblyFalseIteratormago-analyzeranalyse/types/foreach-non-iterable

Merged with IterableInForeachRule, FalseIterator, InvalidIterator and 5 others (see the rule's Replaces section).

PossiblyFalseOperandmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

PossiblyInvalidArgumentmago-analyzeranalyse/types/argument

Merged with CallToFunctionParametersRule, checkArgumentsPassedByReference, checkExtraArguments and 56 others (see the rule's Replaces section).

PossiblyInvalidArrayAccessmago-analyzeranalyse/arrays/invalid-destructuring

Merged with ArrayDestructuringRule, FalseArrayAccess, InvalidArrayAccess and 5 others (see the rule's Replaces section).

PossiblyInvalidClonemago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

PossiblyInvalidIteratormago-analyzeranalyse/types/foreach-non-iterable

Merged with IterableInForeachRule, FalseIterator, InvalidIterator and 5 others (see the rule's Replaces section).

PossiblyInvalidOperandmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

PossiblyInvalidPropertyWritemago-analyzeranalyse/types/property-assign

Merged with TypesAssignedToPropertiesRule, InvalidPropertyAssignmentValue, InvalidPropertyWrite and 3 others (see the rule's Replaces section).

PossiblyNonExistentMethodmago-analyzeranalyse/undefined/method

Merged with CallMethodsRule, checkThisOnly, reportMagicMethods and 3 others (see the rule's Replaces section).

PossiblyNonExistentPropertymago-analyzeranalyse/undefined/property

Merged with AccessPropertiesRule, reportMagicProperties, NonExistentProperty and 1 others (see the rule's Replaces section).

PossiblyNullArgumentmago-analyzeranalyse/types/argument

Merged with CallToFunctionParametersRule, checkArgumentsPassedByReference, checkExtraArguments and 56 others (see the rule's Replaces section).

PossiblyNullArrayAccessmago-analyzeranalyse/arrays/invalid-destructuring

Merged with ArrayDestructuringRule, FalseArrayAccess, InvalidArrayAccess and 5 others (see the rule's Replaces section).

PossiblyNullArrayIndexmago-analyzeranalyse/types/invalid-offset

Merged with InvalidKeyInArrayDimFetchRule, InvalidArrayIndex, MixedArrayIndex and 3 others (see the rule's Replaces section).

PossiblyNullDestructuringSourcemago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

PossiblyNullIteratormago-analyzeranalyse/types/foreach-non-iterable

Merged with IterableInForeachRule, FalseIterator, InvalidIterator and 5 others (see the rule's Replaces section).

PossiblyNullOperandmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

PossiblyNullPropertyAccessmago-analyzeranalyse/undefined/assigned-property

Merged with AccessPropertiesInAssignRule, InvalidPropertyAccess, MixedPropertyAccess and 5 others (see the rule's Replaces section).

PossiblyStaticAccessOnInterfacemago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

PossiblyUndefinedArrayIndexmago-analyzeranalyse/undefined/offset

Merged with NonexistentOffsetInArrayDimFetchRule, PossiblyUndefinedIntArrayIndex, PossiblyUndefinedStringArrayIndex and 4 others (see the rule's Replaces section).

PossiblyUndefinedIntArrayIndexmago-analyzeranalyse/undefined/offset

Merged with NonexistentOffsetInArrayDimFetchRule, PossiblyUndefinedArrayIndex, PossiblyUndefinedStringArrayIndex and 4 others (see the rule's Replaces section).

PossiblyUndefinedStringArrayIndexmago-analyzeranalyse/undefined/offset

Merged with NonexistentOffsetInArrayDimFetchRule, PossiblyUndefinedArrayIndex, PossiblyUndefinedIntArrayIndex and 4 others (see the rule's Replaces section).

PossiblyUndefinedVariablemago-analyzeranalyse/undefined/variable

Merged with DefinedVariableRule, checkMaybeUndefinedVariables, ReferenceToUndefinedVariable and 4 others (see the rule's Replaces section). Planned: not ported yet.

PropertyTypeCoercionmago-analyzeranalyse/types/property-assign

Merged with TypesAssignedToPropertiesRule, InvalidPropertyAssignmentValue, InvalidPropertyWrite and 3 others (see the rule's Replaces section).

PsalmTracemago-analyzeranalyse/debug/dump-type

Merged with DumpTypeRule, TypeInspection, phpstan.dumpType.

RedundantCastmago-analyzerlint/dead-code/no-useless-cast

Merged with RecastingRemoval, UselessCastRule, cast.useless.

RedundantComparisonmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

RedundantConditionmago-analyzeranalyse/dead-code/impossible-type-check

Merged with ImpossibleCheckTypeFunctionCallRule, ImpossibleCondition, ImpossibleNullTypeComparison and 5 others (see the rule's Replaces section).

RedundantDocblockTypemago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

RedundantIssetCheckmago-analyzeranalyse/statements/invalid-empty

Merged with EmptyRule, checkAdvancedIsset, empty.initializedProperty and 11 others (see the rule's Replaces section).

RedundantKeyCheckmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

RedundantLogicalOperationmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

RedundantNonnullEntryCheckmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

RedundantNonnullTypeComparisonmago-analyzeranalyse/dead-code/impossible-type-check

Merged with ImpossibleCheckTypeFunctionCallRule, ImpossibleCondition, ImpossibleNullTypeComparison and 5 others (see the rule's Replaces section).

RedundantNullCoalescemago-analyzeranalyse/dead-code/redundant-null-coalesce

Merged with NullCoalesceRule, nullCoalesce.unnecessary.

RedundantNullsafeOperatormago-analyzerlint/complexity/no-redundant-nullsafe

Merged with Pun/no_redundant_nullsafe, NullsafeMethodCallRule, NullsafePropertyFetchRule and 2 others (see the rule's Replaces section).

RedundantTypeComparisonmago-analyzeranalyse/dead-code/impossible-type-check

Merged with ImpossibleCheckTypeFunctionCallRule, ImpossibleCondition, ImpossibleNullTypeComparison and 5 others (see the rule's Replaces section).

ReferenceConstraintViolationmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

ReferenceReusedFromConfusingScopemago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

ReferenceToUndefinedVariablemago-analyzeranalyse/undefined/variable

Merged with DefinedVariableRule, checkMaybeUndefinedVariables, PossiblyUndefinedVariable and 4 others (see the rule's Replaces section). Planned: not ported yet.

SelfOutsideClassScopemago-analyzeranalyse/undefined/instanceof-class

Merged with ExistingClassInInstanceOfRule, ParentOutsideClassScope, StaticOutsideClassScope and 4 others (see the rule's Replaces section).

SideEffectsInConditionmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

SkipInKeyedDestructuringmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

SpreadInDestructuringmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

StaticAccessOnInterfacemago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

StaticOutsideClassScopemago-analyzeranalyse/undefined/instanceof-class

Merged with ExistingClassInInstanceOfRule, ParentOutsideClassScope, SelfOutsideClassScope and 4 others (see the rule's Replaces section).

StringConstantSelectormago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

StringMemberSelectormago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

TemplateConstraintViolationmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

TooFewArgumentsmago-analyzeranalyse/types/argument

Merged with CallToFunctionParametersRule, checkArgumentsPassedByReference, checkExtraArguments and 56 others (see the rule's Replaces section).

TooManyArgumentsmago-analyzeranalyse/types/argument

Merged with CallToFunctionParametersRule, checkArgumentsPassedByReference, checkExtraArguments and 56 others (see the rule's Replaces section).

TooWideThrowTypemago-analyzeranalyse/types/unused-throws-type

Merged with TooWideFunctionThrowTypeRule, throws.unusedType.

TraitConstantOverridemago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

TraitInstantiationmago-analyzeranalyse/types/invalid-closure-signature

Merged with ExistingClassesInClosureTypehintsRule, attribute.target, method.templateTypeNotInParameter and 7 others (see the rule's Replaces section).

TypeConfirmationmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

TypeInspectionmago-analyzeranalyse/debug/dump-type

Merged with DumpTypeRule, PsalmTrace, phpstan.dumpType.

UnavailableClassConstantmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

UnavailableClassLikemago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

UnavailableConstantmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

UnavailableEnumCasemago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

UnavailableFunctionmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

UnavailableMethodmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

UnavailablePropertymago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

UndefinedIntArrayIndexmago-analyzeranalyse/undefined/offset

Merged with NonexistentOffsetInArrayDimFetchRule, PossiblyUndefinedArrayIndex, PossiblyUndefinedIntArrayIndex and 4 others (see the rule's Replaces section).

UndefinedStringArrayIndexmago-analyzeranalyse/undefined/offset

Merged with NonexistentOffsetInArrayDimFetchRule, PossiblyUndefinedArrayIndex, PossiblyUndefinedIntArrayIndex and 4 others (see the rule's Replaces section).

UndefinedVariablemago-analyzeranalyse/undefined/variable

Merged with DefinedVariableRule, checkMaybeUndefinedVariables, PossiblyUndefinedVariable and 4 others (see the rule's Replaces section). Planned: not ported yet.

UndefinedVariableInClosureUsemago-analyzeranalyse/undefined/variable

Merged with DefinedVariableRule, checkMaybeUndefinedVariables, PossiblyUndefinedVariable and 4 others (see the rule's Replaces section). Planned: not ported yet.

UnevaluatedCodemago-analyzerlint/dead-code/no-unreachable-code

Merged with RemoveUnreachableStatement, UnreachableStatementRule, deadCode.unreachable.

UnhandledThrownTypemago-analyzeranalyse/types/missing-throws

Merged with MissingCheckedExceptionInFunctionThrowsRule, missingType.checkedException.

UnimplementedAbstractMethodmago-analyzeranalyse/classes/abstract-method-in-concrete-class

Merged with AbstractMethodInNonAbstractClassRule, method.abstract, method.nonAbstract.

UnimplementedAbstractPropertyHookmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

UninitializedPropertymago-analyzeranalyse/classes/uninitialized-property

Merged with UninitializedPropertyRule, MissingConstructor, property.uninitialized.

UnknownClassInstantiationmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

UnknownConstantSelectorTypemago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

UnknownIteratorTypemago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

UnknownMatchSubjectTypemago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

UnknownMemberSelectorTypemago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

UnknownYieldFromIteratorTypemago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

UnreachableElseClausemago-analyzeranalyse/dead-code/number-comparison-always-constant

Merged with NumberComparisonOperatorsConstantConditionRule, MatchArmAlwaysTrue, UnreachableMatchArm and 38 others (see the rule's Replaces section).

UnreachableMatchArmmago-analyzeranalyse/dead-code/number-comparison-always-constant

Merged with NumberComparisonOperatorsConstantConditionRule, MatchArmAlwaysTrue, UnreachableElseClause and 38 others (see the rule's Replaces section).

UnreachableMatchDefaultArmmago-analyzeranalyse/dead-code/number-comparison-always-constant

Merged with NumberComparisonOperatorsConstantConditionRule, MatchArmAlwaysTrue, UnreachableElseClause and 38 others (see the rule's Replaces section).

UnreachableSwitchCasemago-analyzeranalyse/dead-code/number-comparison-always-constant

Merged with NumberComparisonOperatorsConstantConditionRule, MatchArmAlwaysTrue, UnreachableElseClause and 38 others (see the rule's Replaces section).

UnreachableSwitchDefaultmago-analyzeranalyse/dead-code/number-comparison-always-constant

Merged with NumberComparisonOperatorsConstantConditionRule, MatchArmAlwaysTrue, UnreachableElseClause and 38 others (see the rule's Replaces section).

UnresolvableClassConstantmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

UnsafeInstantiationmago-analyzeranalyse/classes/unsafe-new-static

Merged with NewStaticRule, new.static.

UnusedFunctionCallmago-analyzerlint/dead-code/no-unused-expression

Merged with RemoveDeadStmt, NoopRule, UnusedMethodCall and 8 others (see the rule's Replaces section).

UnusedMethodmago-analyzerlint/dead-code/no-unused-private-method

Merged with RemoveUnusedPrivateMethod, UnusedPrivateMethodRule, method.unused.

UnusedMethodCallmago-analyzerlint/dead-code/no-unused-expression

Merged with RemoveDeadStmt, NoopRule, UnusedFunctionCall and 8 others (see the rule's Replaces section).

UnusedParametermago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

UnusedPropertymago-analyzeranalyse/dead-code/unused-private-property

Merged with UnusedPrivatePropertyRule, WriteOnlyProperty, property.neverRead and 2 others (see the rule's Replaces section).

UnusedStatementmago-analyzerlint/dead-code/no-unused-expression

Merged with RemoveDeadStmt, NoopRule, UnusedFunctionCall and 8 others (see the rule's Replaces section).

UnusedTemplateParametermago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

UselessControlFlowmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

WhereConstraintViolationmago-analyzerNot supported

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

WriteOnlyPropertymago-analyzeranalyse/dead-code/unused-private-property

Merged with UnusedPrivatePropertyRule, UnusedProperty, property.neverRead and 2 others (see the rule's Replaces section).

YieldFromInvalidKeyTypemago-analyzeranalyse/types/generator

Merged with YieldTypeRule, InvalidGeneratorReturnType, InvalidYieldKeyType and 6 others (see the rule's Replaces section).

YieldFromInvalidSendTypemago-analyzeranalyse/types/generator

Merged with YieldTypeRule, InvalidGeneratorReturnType, InvalidYieldKeyType and 6 others (see the rule's Replaces section).

YieldFromInvalidValueTypemago-analyzeranalyse/types/generator

Merged with YieldTypeRule, InvalidGeneratorReturnType, InvalidYieldKeyType and 6 others (see the rule's Replaces section).

YieldFromNonIterablemago-analyzeranalyse/types/yield-from-non-iterable

Merged with YieldFromTypeRule, generator.nonIterable, generator.sendType.

YieldOutsideFunctionmago-analyzeranalyse/types/yield-outside-function

Merged with YieldInGeneratorRule, generator.outOfFunction, generator.returnType.

Unsupported rules

Mago formatter pragmas; Pun reports unused @pun-ignore itself (lint/comments/no-unused-ignore)

ineffective-format-ignore-next, ineffective-format-ignore-region.

Psl integration: out of scope (Laravel-first)

psl-array-functions, psl-data-structures, psl-datetime, psl-math-functions, psl-output, psl-randomness-functions, psl-regex-functions, psl-sleep-functions, psl-string-functions.

Symfony integration: out of scope (Laravel-first)

no-service-state-mutation, prefer-interface.

WordPress integration: out of scope (Laravel-first)

no-db-schema-change, no-direct-db-query, no-roles-as-capabilities, no-unescaped-output, nonce-verification, prepared-sql, use-wp-functions, validated-sanitized-input.

no PHPStan-parity equivalent; Mago analyzer is not a migrate input

AlwaysMatchingSwitchCase, AmbiguousClassLikeConstantAccess, AmbiguousInstantiationTarget, AmbiguousObjectMethodAccess, AmbiguousObjectPropertyAccess, ArrayAppendOverflow, ArrayToIntCast, ArrayToStringConversion, AssignmentToConstant, AvoidCatchingError, BackedPropertyReferenceHook, ClassMustBeFinal, CloneInsideLoop, ConditionIsTooComplex, ConflictingReferenceConstraint, ConflictingTemplateEqualityBounds, DeprecatedClosure, DeprecatedFeature, DeprecatedTrait, DirectTraitConstantAccess, DocblockParameterNarrowing, DuplicateSwitchCase, EmptyMatchExpression, EnumIteration, ExcessTemplateParameter, ExperimentalUsage, ExpressionIsTooComplex, FalseOperand, GenericObjectIteration, HiddenGeneratorReturn, ImplicitFloatToIntCast, ImplicitResourceToStringCast, ImplicitToStringCast, ImpossibleArrayAccess, ImpossibleArrayAssignment, ImpossibleAssignment, ImpossibleKeyCheck, ImpossibleNonnullEntryCheck, ImpreciseType, IncompatibleConstantAccess, IncompatiblePropertyHookSignature, IncompatibleTemplateLowerBound, InconsistentTemplate, InvalidArrayAccessAssignmentValue, InvalidArrayElement, InvalidClassConstantOnString, InvalidClassStringExpression, InvalidConstantAccess, InvalidConstantSelector, InvalidDestructuringSource, InvalidForeachKey, InvalidForeachValue, InvalidGlobal, InvalidIssetExpression, InvalidMemberSelector, InvalidOperand, InvalidParentType, InvalidPropertyRead, InvalidScopeKeywordContext, InvalidStaticMethodAccess, InvalidTemplateParameter, InvalidTraitAliasModifier, LessSpecificNestedArgumentType, LessSpecificNestedReturnStatement, ListDestructureNegativeKey, ListDestructureStringKey, ListUsedInReadContext, MatchDefaultArmAlwaysExecuted, MatchExpressionOnlyDefaultArm, MatchSubjectTypeIsNever, MismatchedArrayIndex, MissingApiOrInternal, MissingConstantType, MissingMagicMethod, MissingTemplateParameter, MixedArrayAssignment, MixedAssignment, MixedClone, MixedDestructuringShape, MixedOperand, NamedArgumentAfterPositional, NeverMatchingSwitchCase, NoValidCatchTypeFound, NoValue, NonDocumentedConstant, NonDocumentedMethod, NonDocumentedProperty, NonExistentUseImport, NonStaticAbstractImplementation, NullDestructuringSource, NullOperand, OverrideFinalPropertyHook, ParadoxicalCondition, PossiblyArrayAppendOverflow, PossiblyFalseOperand, PossiblyInvalidClone, PossiblyInvalidOperand, PossiblyNullDestructuringSource, PossiblyNullOperand, PossiblyStaticAccessOnInterface, RedundantComparison, RedundantDocblockType, RedundantKeyCheck, RedundantLogicalOperation, RedundantNonnullEntryCheck, ReferenceConstraintViolation, ReferenceReusedFromConfusingScope, SideEffectsInCondition, SkipInKeyedDestructuring, SpreadInDestructuring, StaticAccessOnInterface, StringConstantSelector, StringMemberSelector, TemplateConstraintViolation, TraitConstantOverride, TypeConfirmation, UnavailableClassConstant, UnavailableClassLike, UnavailableConstant, UnavailableEnumCase, UnavailableFunction, UnavailableMethod, UnavailableProperty, UnimplementedAbstractPropertyHook, UnknownClassInstantiation, UnknownConstantSelectorType, UnknownIteratorType, UnknownMatchSubjectType, UnknownMemberSelectorType, UnknownYieldFromIteratorType, UnresolvableClassConstant, UnusedParameter, UnusedTemplateParameter, UselessControlFlow, WhereConstraintViolation.

Pun-only rules

Last updated on

Was this page helpful?