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 1.57 has no page per code. Pun/* names are Pun’s Mago ports, not Mago rule codes.

Rule mapping

546 of 546 upstream entries

Upstream namePun ruleNotes
Pun/final_controllerpunlint/laravel/require-final-controllerMerged with final-controller. Options: same.
Pun/no_implicit_model_querypunlint/laravel/no-implicit-model-queryMerged with EloquentMagicMethodToQueryBuilder, no-implicit-model-query. Options: same.
Pun/no_onlypunlint/pest/no-onlyMerged with RemoveOnly, no-only. Options: same.
Pun/no_redundant_issetpunlint/complexity/no-redundant-issetMerged with no-redundant-isset. Options: same.
Pun/no_redundant_literal_returnpunlint/complexity/no-redundant-literal-returnMerged with no-redundant-literal-return. Options: same.
Pun/no_redundant_nullsafepunlint/complexity/no-redundant-nullsafeMerged 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-assignmentMerged with SimplifyMirrorAssign, no-self-assignment. Options: same.
Pun/prefer_array_spreadpunlint/arrays/prefer-array-spreadMerged with prefer-array-spread. Options: same.
Pun/prefer_array_validation_rulespunlint/laravel/prefer-array-validation-rulesMerged with ValidationRuleArrayStringValueToArray, prefer-array-validation-rules. Options: same.
Pun/prefer_dedicated_status_assertionpunlint/laravel/prefer-dedicated-status-assertionMerged with AssertStatusToAssertMethod, prefer-dedicated-status-assertion. Options: same.
Pun/prefer_explode_over_preg_splitpunlint/performance/prefer-explode-over-preg-splitMerged with prefer-explode-over-preg-split. Options: same.
Pun/prefer_fake_helperpunlint/laravel/prefer-fake-helperMerged with prefer-fake-helper. Options: same.
Pun/prefer_first_class_callablepunlint/php-8.1/prefer-first-class-callableMerged with prefer-first-class-callable. Options: same.
Pun/sensitive_parameterpunlint/security/add-sensitive-parameterMerged with sensitive-parameter. Options: same.
Pun/use_dedicated_expectationpunlint/pest/prefer-dedicated-expectationMerged with use-dedicated-expectation. Options: same.
Pun/use_simpler_expectationpunlint/pest/prefer-simpler-expectationMerged with SimplifyComparisonExpectations, use-simpler-expectation. Options: same.
Pun/use_specific_expectationspunlint/pest/prefer-specific-expectationsMerged with SimplifyToLiteralBoolean, use-specific-expectations. Options: same.
ambiguous-constant-accessmago-linterlint/style/no-ambiguous-constantSame. Options: same.
ambiguous-function-callmago-linterlint/style/no-ambiguous-functionSame. Options: same.
array-stylemago-linterformat/arrays/syntaxMerged with array_syntax. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).
assert-descriptionmago-linterlint/functions/require-assert-descriptionSame. Options: same.
assertion-stylemago-linterlint/phpunit/require-assertion-styleMerged 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/bracesMerged 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-variableMerged with explicit_string_variable. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).
class-namemago-linterlint/style/require-naming-conventionMerged 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-issetMerged with combine_consecutive_issets. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).
constant-conditionmago-linterlint/complexity/no-constant-conditionMerged with RemoveDeadIfBlock. Options: same.
constant-namemago-linterlint/style/require-naming-conventionMerged with class-name, enum-name, function-name and 5 others (see the rule's Replaces section). Options: same.
cyclomatic-complexitymago-linterlint/complexity/no-excessive-cyclomaticSame. Options: same.
deprecated-castmago-linterformat/casts/short-scalarMerged 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-execMerged 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-colonMerged 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-functionsSame. Options: same.
disallowed-type-instantiationmago-linterlint/security/no-restricted-instantiationSame. Options: same.
enum-namemago-linterlint/style/require-naming-conventionMerged with class-name, constant-name, function-name and 5 others (see the rule's Replaces section). Options: same.
excessive-nestingmago-linterlint/complexity/no-excessive-nestingSame. Options: same.
excessive-parameter-listmago-linterlint/complexity/no-excessive-parametersSame. Options: same.
explicit-nullable-parammago-linterformat/types/nullable-for-null-defaultMerged 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-notationMerged with octal_notation. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).
file-namemago-linterlint/classes/require-class-matches-fileMerged with psr_autoloading. Options: same.
final-controllermago-linterlint/laravel/require-final-controllerMerged with Pun/final_controller. Options: same.
function-namemago-linterlint/style/require-naming-conventionMerged with class-name, constant-name, enum-name and 5 others (see the rule's Replaces section). Options: same.
halsteadmago-linterlint/complexity/no-excessive-halsteadSame. Options: same.
identity-comparisonmago-linterlint/types/no-loose-comparisonMerged with strict_comparison. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).
ineffective-format-ignore-nextmago-linter—Mago formatter pragmas; Pun reports unused @pun-ignore itself (lint/comments/no-unused-ignore)
ineffective-format-ignore-regionmago-linter—Mago formatter pragmas; Pun reports unused @pun-ignore itself (lint/comments/no-unused-ignore)
inline-variable-returnmago-linterlint/control-flow/no-return-assignmentMerged with return_assignment, SimplifyUselessVariable. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).
instanceof-stringablemago-linterlint/style/prefer-instanceof-stringableSame. Options: same.
interface-namemago-linterlint/style/require-naming-conventionMerged 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-tagSame. Options: same.
kan-defectmago-linterlint/complexity/no-excessive-kan-defectSame. Options: same.
literal-named-argumentmago-linterlint/complexity/prefer-named-literal-argumentSame. Options: same.
loop-does-not-iteratemago-linterlint/style/no-unreachable-loopSame. Options: same.
lowercase-keywordmago-linterformat/casing/keywordsMerged with lowercase_keywords. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).
lowercase-type-hintmago-linterformat/casing/native-typesMerged 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-conventionMerged 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-middlewareSame. Options: same.
missing-docsmago-linterlint/style/require-phpdocSame. Options: same.
no-alias-functionmago-linterlint/style/no-alias-functionMerged 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-syntaxMerged 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-loopSame. Options: same.
no-assign-in-argumentmago-linterlint/functions/no-assign-in-argumentSame. Options: same.
no-assign-in-conditionmago-linterlint/control-flow/no-assign-in-conditionSame. Options: same.
no-boolean-flag-parametermago-linterlint/complexity/no-boolean-flag-parameterSame. Options: same.
no-closing-tagmago-linterformat/tags/no-closingMerged 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-linter—WordPress integration: out of scope (Laravel-first)
no-dead-storemago-linterlint/dead-code/no-unused-assignmentMerged with RemoveDoubleAssign, RemoveUnusedVariableAssign, no-redundant-variable. Options: same.
no-debug-symbolsmago-linterlint/security/no-debug-callsMerged with RemoveDebugExpectations. Options: same.
no-direct-db-querymago-linter—WordPress integration: out of scope (Laravel-first)
no-duplicate-match-armmago-linterlint/complexity/no-duplicate-match-armSame. Options: same.
no-else-clausemago-linterlint/complexity/no-else-clauseSame. Options: same.
no-emptymago-linterlint/style/no-emptyMerged with DisallowedEmptyRule, empty.notAllowed. Options: same.
no-empty-catch-clausemago-linterlint/control-flow/no-empty-catchSame. Options: same.
no-empty-commentmago-linterformat/comments/no-emptyMerged 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-blockMerged with RemoveDeadIfForeachFor, RemoveDeadLoop. Options: same.
no-error-control-operatormago-linterlint/operators/no-error-suppressionMerged with error_suppression. Options: same.
no-evalmago-linterlint/security/no-evalSame. Options: same.
no-ffimago-linterlint/security/no-ffiSame. Options: same.
no-fully-qualified-global-class-likemago-linterformat/imports/global-namespaceMerged 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-namespaceMerged 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-namespaceMerged 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-globalSame. Options: same.
no-gotomago-linterlint/complexity/no-gotoSame. Options: same.
no-hash-commentmago-linterformat/comments/single-line-styleMerged 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-emojiSame. Options: same.
no-implicit-model-querymago-linterlint/laravel/no-implicit-model-queryMerged with Pun/no_implicit_model_query, EloquentMagicMethodToQueryBuilder. Options: same.
no-ini-setmago-linterlint/style/no-ini-setSame. Options: same.
no-inlinemago-linterlint/style/no-inline-htmlSame. Options: same.
no-insecure-comparisonmago-linterlint/security/no-insecure-comparisonSame. Options: same.
no-is-nullmago-linterlint/style/no-is-nullMerged with is_null. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).
no-issetmago-linterlint/style/no-issetSame. Options: same.
no-iterator-to-array-in-foreachmago-linterlint/complexity/no-iterator-to-array-in-foreachSame. Options: same.
no-legacy-constructormago-linterlint/style/no-php4-constructorMerged with no_php4_constructor. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).
no-literal-namespace-stringmago-linterlint/style/prefer-class-constantMerged with class_keyword, StringClassNameToClassConstant, UseClassKeywordForClassNameResolution. Options: same.
no-literal-passwordmago-linterlint/security/no-literal-passwordSame. Options: same.
no-missing-format-argumentmago-linterlint/functions/no-missing-format-argumentSame. Options: same.
no-multi-assignmentsmago-linterlint/style/no-multi-assignMerged with SplitDoubleAssign. Options: same.
no-negated-ternarymago-linterlint/refactor/no-negated-conditionSame. Options: same.
no-nested-ternarymago-linterlint/style/no-nested-ternarySame. Options: same.
no-noopmago-linterlint/statements/no-emptyMerged 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-defaultMerged 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-onlyMerged with Pun/no_only, RemoveOnly. Options: same.
no-parameter-shadowingmago-linterlint/style/no-parameter-shadowingSame. Options: same.
no-php-tag-terminatormago-linterformat/tags/no-closingMerged 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-finalMerged 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-binaryMerged 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-bracesMerged 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-continueMerged with RemoveDeadContinue. Options: same.
no-redundant-elsemago-linterlint/control-flow/no-useless-elseMerged 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-fileSame. Options: same.
no-redundant-finalmago-linterlint/style/no-redundant-finalMerged with no_unneeded_final_method. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).
no-redundant-issetmago-linterlint/complexity/no-redundant-issetMerged with Pun/no_redundant_isset. Options: same.
no-redundant-labelmago-linterlint/complexity/no-unused-labelMerged with UnusedLabelRule, label.unused. Options: same.
no-redundant-literal-returnmago-linterlint/complexity/no-redundant-literal-returnMerged with Pun/no_redundant_literal_return. Options: same.
no-redundant-mathmago-linterlint/dead-code/no-useless-mathMerged with RemoveDeadZeroAndOneOperation. Options: same.
no-redundant-method-overridemago-linterlint/dead-code/no-useless-overrideMerged with RemoveParentDelegatingClassMethod. Options: same.
no-redundant-nullsafemago-linterlint/complexity/no-redundant-nullsafeMerged 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-parenthesesMerged 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-readonlyMerged 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-concatMerged 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-unusedMerged 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-assignmentMerged with RemoveDoubleAssign, RemoveUnusedVariableAssign, no-dead-store. Options: same.
no-redundant-write-visibilitymago-linterlint/complexity/no-redundant-write-visibilitySame. Options: same.
no-redundant-yield-frommago-linterlint/style/no-redundant-yield-fromMerged 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-allSame. Options: same.
no-request-variablemago-linterlint/security/no-request-variableSame. Options: same.
no-roles-as-capabilitiesmago-linter—WordPress integration: out of scope (Laravel-first)
no-self-assignmentmago-linterlint/dead-code/no-self-assignmentMerged with Pun/no_self_assignment, SimplifyMirrorAssign. Options: same.
no-service-state-mutationmago-linter—Symfony integration: out of scope (Laravel-first)
no-shell-execute-stringmago-linterformat/functions/backtick-to-shell-execMerged 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-boolMerged 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-openingMerged 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-ternaryMerged with DisallowedShortTernaryRule, ternary.shortNotAllowed. Options: same.
no-side-effects-with-declarationsmago-linterlint/style/no-side-effects-with-declarationsSame. Options: same.
no-sprintf-concatmago-linterlint/style/no-sprintf-concatSame. Options: same.
no-trailing-spacemago-linterformat/comments/no-trailing-whitespaceMerged 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-classSame. Options: same.
no-unescaped-outputmago-linter—WordPress integration: out of scope (Laravel-first)
no-unsafe-finallymago-linterlint/control-flow/no-unsafe-finallySame. Options: same.
no-unused-closure-capturemago-linterlint/functions/no-unused-closure-useMerged 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-globalSame. Options: same.
no-unused-return-valuemago-linterlint/dead-code/no-unused-return-valueSame. Options: same.
no-unused-staticmago-linterlint/dead-code/no-unused-staticSame. Options: same.
no-variable-variablemago-linterlint/style/no-variable-variableMerged with VariableVariablesRule, variable.dynamicName. Options: same.
no-void-reference-returnmago-linterlint/functions/no-void-reference-returnSame. Options: same.
nonce-verificationmago-linter—WordPress integration: out of scope (Laravel-first)
optional-param-ordermago-linterlint/functions/no-required-after-optionalMerged with OptionalParametersAfterRequired, parameter.requiredAfterOptional. Options: same.
prefer-anonymous-migrationmago-linterlint/laravel/prefer-anonymous-migrationMerged with AnonymousMigrations. Options: same.
prefer-array-spreadmago-linterlint/arrays/prefer-array-spreadMerged with Pun/prefer_array_spread. Options: same.
prefer-array-validation-rulesmago-linterlint/laravel/prefer-array-validation-rulesMerged with Pun/prefer_array_validation_rules, ValidationRuleArrayStringValueToArray. Options: same.
prefer-arrow-functionmago-linterlint/style/prefer-arrow-functionMerged 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-methodSame. Options: same.
prefer-datetimeimmutable-create-from-timestampmago-linterlint/style/prefer-create-from-timestampSame. Options: same.
prefer-dedicated-status-assertionmago-linterlint/laravel/prefer-dedicated-status-assertionMerged with Pun/prefer_dedicated_status_assertion, AssertStatusToAssertMethod. Options: same.
prefer-early-continuemago-linterlint/style/prefer-early-continueSame. Options: same.
prefer-early-returnmago-linterlint/style/prefer-early-returnMerged with ChangeIfElseValueAssignToEarlyReturn. Options: same.
prefer-explode-over-preg-splitmago-linterlint/performance/prefer-explode-over-preg-splitMerged with Pun/prefer_explode_over_preg_split. Options: same.
prefer-fake-helpermago-linterlint/laravel/prefer-fake-helperMerged with Pun/prefer_fake_helper. Options: same.
prefer-first-class-callablemago-linterlint/php-8.1/prefer-first-class-callableMerged with Pun/prefer_first_class_callable. Options: same.
prefer-interfacemago-linter—Symfony integration: out of scope (Laravel-first)
prefer-null-coalescing-assignmentmago-linterlint/operators/prefer-coalesce-assign-over-fallbackSame. Options: same.
prefer-pre-incrementmago-linterformat/operators/increment-styleMerged with increment_style. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).
prefer-selfmago-linterlint/style/prefer-self-referenceMerged 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-referenceMerged 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-closureMerged with static_lambda. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).
prefer-test-attributemago-linterlint/phpunit/prefer-test-attributeSame. Options: same.
prefer-view-arraymago-linterlint/laravel/prefer-view-arraySame. Options: same.
prefer-while-loopmago-linterlint/style/prefer-while-loopSame. Options: same.
prepared-sqlmago-linter—WordPress integration: out of scope (Laravel-first)
property-namemago-linterlint/style/require-naming-conventionMerged with class-name, constant-name, enum-name and 5 others (see the rule's Replaces section). Options: same.
psl-array-functionsmago-linter—Psl integration: out of scope (Laravel-first)
psl-data-structuresmago-linter—Psl integration: out of scope (Laravel-first)
psl-datetimemago-linter—Psl integration: out of scope (Laravel-first)
psl-math-functionsmago-linter—Psl integration: out of scope (Laravel-first)
psl-outputmago-linter—Psl integration: out of scope (Laravel-first)
psl-randomness-functionsmago-linter—Psl integration: out of scope (Laravel-first)
psl-regex-functionsmago-linter—Psl integration: out of scope (Laravel-first)
psl-sleep-functionsmago-linter—Psl integration: out of scope (Laravel-first)
psl-string-functionsmago-linter—Psl integration: out of scope (Laravel-first)
readable-literalmago-linterformat/statements/numeric-literal-separatorMerged 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-finalMerged with self_static_accessor, ConvertStaticToSelf. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).
require-namespacemago-linterlint/style/require-namespaceSame. Options: same.
require-preg-quote-delimitermago-linterlint/security/require-preg-quote-delimiterSame. Options: same.
sensitive-parametermago-linterlint/security/add-sensitive-parameterMerged with Pun/sensitive_parameter. Options: same.
single-class-per-filemago-linterlint/style/no-multiple-classes-per-fileSame. Options: same.
sorted-integer-keysmago-linterlint/style/require-sorted-integer-keysSame. Options: same.
str-containsmago-linterlint/style/prefer-str-containsMerged with modernize_strpos, str-starts-with. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).
str-starts-withmago-linterlint/style/prefer-str-containsMerged with modernize_strpos, str-contains. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).
strict-assertionsmago-linterlint/phpunit/prefer-assert-sameMerged 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-paramMerged with strict_param. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).
strict-typesmago-linterlint/statements/require-strict-typesMerged with declare_strict_types. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).
string-stylemago-linterlint/strings/require-interpolation-styleSame. Options: same.
suspicious-explode-argumentsmago-linterlint/functions/no-swapped-explode-argumentsSame. Options: same.
switch-continue-to-breakmago-linterlint/control-flow/no-switch-continueMerged with switch_continue_to_break. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).
tagged-fixmemago-linterlint/style/require-todo-referenceMerged with tagged-todo. Options: same.
tagged-todomago-linterlint/style/require-todo-referenceMerged with tagged-fixme. Options: same.
tainted-data-to-sinkmago-linterlint/security/no-tainted-dataSame. Options: same.
too-many-enum-casesmago-linterlint/complexity/no-excessive-enum-casesSame. Options: same.
too-many-methodsmago-linterlint/complexity/no-excessive-methodsSame. Options: same.
too-many-propertiesmago-linterlint/complexity/no-excessive-propertiesSame. Options: same.
trait-namemago-linterlint/style/require-naming-conventionMerged 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-assignmentMerged 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-expectationMerged with Pun/use_dedicated_expectation. Options: same.
use-simpler-expectationmago-linterlint/pest/prefer-simpler-expectationMerged with Pun/use_simpler_expectation, SimplifyComparisonExpectations. Options: same.
use-specific-assertionsmago-linterlint/phpunit/prefer-specific-assertionsMerged 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-expectationsMerged with Pun/use_specific_expectations, SimplifyToLiteralBoolean. Options: same.
use-wp-functionsmago-linter—WordPress integration: out of scope (Laravel-first)
valid-docblockmago-linterlint/style/no-invalid-phpdocSame. Options: same.
validated-sanitized-inputmago-linter—WordPress integration: out of scope (Laravel-first)
variable-namemago-linterlint/style/require-naming-conventionMerged with class-name, constant-name, enum-name and 5 others (see the rule's Replaces section). Options: same.
yoda-conditionsmago-linterformat/control-flow/yodaMerged with yoda_style. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options).
AbstractClassUsedAsAttributemago-analyzeranalyse/attributes/invalidMerged with NonClassAttributeClassRule, AttributeNotRepeatable, ClassNotMarkedAsAttribute and 7 others (see the rule's Replaces section).
AbstractInstantiationmago-analyzeranalyse/classes/invalid-newMerged with InstantiationRule, EnumInstantiation, InterfaceInstantiation and 12 others (see the rule's Replaces section). Planned: not ported yet.
AlwaysMatchingSwitchCasemago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
AmbiguousClassLikeConstantAccessmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
AmbiguousInstantiationTargetmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
AmbiguousObjectMethodAccessmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
AmbiguousObjectPropertyAccessmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
ArrayAppendInReadContextmago-analyzeranalyse/arrays/read-without-offsetMerged with OffsetAccessWithoutDimForReadingRule, offsetAccess.noDim.
ArrayAppendOverflowmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
ArrayToIntCastmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
ArrayToStringConversionmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
AssignmentToConstantmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
AssignmentToThismago-analyzeranalyse/types/assign-to-thisMerged with InvalidVariableAssignRule, assign.this.
AttributeNotRepeatablemago-analyzeranalyse/attributes/invalidMerged with NonClassAttributeClassRule, AbstractClassUsedAsAttribute, ClassNotMarkedAsAttribute and 7 others (see the rule's Replaces section).
AvoidCatchingErrormago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
BackedPropertyReferenceHookmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
CatchTypeNotThrowablemago-analyzeranalyse/types/catch-non-throwableMerged with CaughtExceptionExistenceRule, InvalidCatchType, InvalidCatchTypeNotClassOrInterface and 2 others (see the rule's Replaces section).
ClassMustBeFinalmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
ClassNotMarkedAsAttributemago-analyzeranalyse/attributes/invalidMerged with NonClassAttributeClassRule, AbstractClassUsedAsAttribute, AttributeNotRepeatable and 7 others (see the rule's Replaces section).
CloneInsideLoopmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
ConditionIsTooComplexmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
ConflictingReferenceConstraintmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
ConflictingTemplateEqualityBoundsmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
DeadCatchmago-analyzeranalyse/types/dead-catchMerged with CatchWithUnthrownExceptionRule, DuplicateCaughtType, catch.alreadyCaught and 1 others (see the rule's Replaces section).
DeprecatedClassmago-analyzeranalyse/deprecated/classMerged with RestrictedDeprecatedClassNameUsageExtension, catch.deprecatedClass, catch.deprecatedEnum and 35 others (see the rule's Replaces section).
DeprecatedClassConstantmago-analyzeranalyse/deprecated/class-constantMerged with RestrictedDeprecatedClassConstantUsageExtension, classConstant.deprecated, enumCase.deprecated.
DeprecatedClosuremago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
DeprecatedConstantmago-analyzeranalyse/deprecated/constantMerged with FetchingDeprecatedConstRule, constant.deprecated.
DeprecatedFeaturemago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
DeprecatedFunctionmago-analyzeranalyse/deprecated/functionMerged with RestrictedDeprecatedFunctionUsageExtension, function.deprecated.
DeprecatedMethodmago-analyzeranalyse/deprecated/methodMerged with RestrictedDeprecatedMethodUsageExtension, method.deprecated, staticMethod.deprecated.
DeprecatedPropertymago-analyzeranalyse/deprecated/propertyMerged with RestrictedDeprecatedPropertyUsageExtension, property.deprecated, staticProperty.deprecated.
DeprecatedTraitmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
DirectTraitConstantAccessmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
DocblockParameterNarrowingmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
DocblockTypeMismatchmago-analyzeranalyse/phpdoc/type-mismatchMerged with IncompatiblePhpDocTypeRule, paramClosureThis.nonClosure, parameter.phpDocType and 3 others (see the rule's Replaces section).
DuplicateArrayKeymago-analyzerlint/dead-code/no-duplicate-array-keyMerged with RemoveDuplicatedArrayKey, DuplicateKeysInLiteralArraysRule, array.duplicateKey.
DuplicateCaughtTypemago-analyzeranalyse/types/dead-catchMerged with CatchWithUnthrownExceptionRule, DeadCatch, catch.alreadyCaught and 1 others (see the rule's Replaces section).
DuplicateClosureUseVariablemago-analyzeranalyse/functions/invalid-closure-useMerged with InvalidLexicalVariablesInClosureUseRule, closure.useDuplicate, closure.useSuperGlobal and 1 others (see the rule's Replaces section).
DuplicateDefinitionmago-analyzeranalyse/classes/duplicate-declarationMerged with DuplicateDeclarationRule, class.duplicate, class.duplicateConstant and 19 others (see the rule's Replaces section).
DuplicateEnumCaseValuemago-analyzeranalyse/classes/invalid-enumMerged with EnumSanityRule, InvalidEnumCaseValue, enum.backingType and 9 others (see the rule's Replaces section).
DuplicateNamedArgumentmago-analyzeranalyse/types/argumentMerged with CallToFunctionParametersRule, checkArgumentsPassedByReference, checkExtraArguments and 56 others (see the rule's Replaces section).
DuplicateSwitchCasemago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
DynamicStaticMethodCallmago-analyzeranalyse/classes/dynamic-static-callMerged with DynamicCallOnStaticMethodsRule, staticMethod.dynamicCall.
EmptyMatchExpressionmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
EnumInstantiationmago-analyzeranalyse/classes/invalid-newMerged with InstantiationRule, AbstractInstantiation, InterfaceInstantiation and 12 others (see the rule's Replaces section). Planned: not ported yet.
EnumIterationmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
ExcessTemplateParametermago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
ExperimentalUsagemago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
ExpressionIsTooComplexmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
ExtendFinalClassmago-analyzeranalyse/classes/invalid-extendsMerged with ExistingClassInClassExtendsRule, InvalidExtend, InvalidImplement and 11 others (see the rule's Replaces section).
FalsableReturnStatementmago-analyzeranalyse/types/returnMerged with Methods\ReturnTypeRule, InvalidReturnStatement, LessSpecificReturnStatement and 3 others (see the rule's Replaces section).
FalseArgumentmago-analyzeranalyse/types/argumentMerged with CallToFunctionParametersRule, checkArgumentsPassedByReference, checkExtraArguments and 56 others (see the rule's Replaces section).
FalseArrayAccessmago-analyzeranalyse/arrays/invalid-destructuringMerged with ArrayDestructuringRule, InvalidArrayAccess, MixedArrayAccess and 5 others (see the rule's Replaces section).
FalseIteratormago-analyzeranalyse/types/foreach-non-iterableMerged with IterableInForeachRule, InvalidIterator, NonIterableObjectIteration and 5 others (see the rule's Replaces section).
FalseOperandmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
GenericObjectIterationmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
HiddenGeneratorReturnmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
ImplicitFloatToIntCastmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
ImplicitResourceToStringCastmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
ImplicitToStringCastmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
ImpossibleArrayAccessmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
ImpossibleArrayAssignmentmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
ImpossibleAssignmentmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
ImpossibleConditionmago-analyzeranalyse/dead-code/impossible-type-checkMerged with ImpossibleCheckTypeFunctionCallRule, ImpossibleNullTypeComparison, ImpossibleTypeComparison and 5 others (see the rule's Replaces section).
ImpossibleKeyCheckmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
ImpossibleNonnullEntryCheckmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
ImpossibleNullTypeComparisonmago-analyzeranalyse/dead-code/impossible-type-checkMerged with ImpossibleCheckTypeFunctionCallRule, ImpossibleCondition, ImpossibleTypeComparison and 5 others (see the rule's Replaces section).
ImpossibleTypeComparisonmago-analyzeranalyse/dead-code/impossible-type-checkMerged with ImpossibleCheckTypeFunctionCallRule, ImpossibleCondition, ImpossibleNullTypeComparison and 5 others (see the rule's Replaces section).
ImpreciseTypemago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
ImpureConstructmago-analyzeranalyse/classes/incompatible-overrideMerged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureStaticVariable and 48 others (see the rule's Replaces section).
ImpureStaticVariablemago-analyzeranalyse/classes/incompatible-overrideMerged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureConstruct and 48 others (see the rule's Replaces section).
IncompatibleConstantAccessmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
IncompatibleConstantOverridemago-analyzeranalyse/classes/incompatible-overrideMerged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureConstruct and 48 others (see the rule's Replaces section).
IncompatibleConstantTypemago-analyzeranalyse/classes/incompatible-overrideMerged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureConstruct and 48 others (see the rule's Replaces section).
IncompatibleConstantVisibilitymago-analyzeranalyse/classes/incompatible-overrideMerged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureConstruct and 48 others (see the rule's Replaces section).
IncompatibleParameterCountmago-analyzeranalyse/classes/incompatible-overrideMerged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureConstruct and 48 others (see the rule's Replaces section).
IncompatibleParameterNamemago-analyzeranalyse/types/renamed-parameter-in-subtypeMerged with MethodCallWithPossiblyRenamedNamedArgumentRule, argument.parameterRenamedInSubtype.
IncompatibleParameterTypemago-analyzeranalyse/classes/incompatible-overrideMerged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureConstruct and 48 others (see the rule's Replaces section).
IncompatiblePropertyAccessmago-analyzeranalyse/classes/incompatible-property-overrideMerged with OverridingPropertyRule, InvalidOverrideAttribute, InvalidStaticMethodCall and 26 others (see the rule's Replaces section).
IncompatiblePropertyDefaultmago-analyzeranalyse/types/property-defaultMerged with DefaultValueTypesAssignedToPropertiesRule, InvalidPropertyDefaultValue, property.defaultValue.
IncompatiblePropertyHookParameterTypemago-analyzeranalyse/classes/invalid-property-hookMerged with SetPropertyHookParameterRule, propertySetHook.nativeParameterType, propertySetHook.parameterType.
IncompatiblePropertyHookSignaturemago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
IncompatiblePropertyOverridemago-analyzeranalyse/classes/incompatible-overrideMerged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureConstruct and 48 others (see the rule's Replaces section).
IncompatiblePropertyReadonlymago-analyzeranalyse/classes/incompatible-overrideMerged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureConstruct and 48 others (see the rule's Replaces section).
IncompatiblePropertyStaticmago-analyzeranalyse/classes/incompatible-overrideMerged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureConstruct and 48 others (see the rule's Replaces section).
IncompatiblePropertyTypemago-analyzeranalyse/classes/incompatible-overrideMerged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureConstruct and 48 others (see the rule's Replaces section).
IncompatiblePropertyVisibilitymago-analyzeranalyse/classes/incompatible-overrideMerged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureConstruct and 48 others (see the rule's Replaces section).
IncompatibleReadonlyModifiermago-analyzeranalyse/classes/incompatible-overrideanalyse/classes/incompatible-property-overrideMerged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureConstruct and 48 others (see the rule's Replaces section).
IncompatibleReturnTypemago-analyzeranalyse/classes/incompatible-overrideMerged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureConstruct and 48 others (see the rule's Replaces section).
IncompatibleStaticModifiermago-analyzeranalyse/classes/incompatible-overrideanalyse/classes/incompatible-property-overrideMerged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureConstruct and 48 others (see the rule's Replaces section).
IncompatibleTemplateLowerBoundmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
IncompatibleThrowTypemago-analyzeranalyse/types/throws-not-covariantMerged with MethodThrowTypeCovarianceRule, throws.notCovariant, throws.notCovariantWithImplicitVoid and 1 others (see the rule's Replaces section).
IncompatibleVisibilitymago-analyzeranalyse/classes/incompatible-overrideMerged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureConstruct and 48 others (see the rule's Replaces section).
InconsistentTemplatemago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
IncorrectClassLikeCasingmago-analyzeranalyse/undefined/group-importMerged with ExistingNamesInGroupUseRule, checkClassCaseSensitivity, IncorrectFunctionCasing and 5 others (see the rule's Replaces section).
IncorrectFunctionCasingmago-analyzeranalyse/undefined/group-importMerged with ExistingNamesInGroupUseRule, checkClassCaseSensitivity, IncorrectClassLikeCasing and 5 others (see the rule's Replaces section).
InterfaceInstantiationmago-analyzeranalyse/classes/invalid-newMerged with InstantiationRule, AbstractInstantiation, EnumInstantiation and 12 others (see the rule's Replaces section). Planned: not ported yet.
InvalidArgumentmago-analyzeranalyse/types/argumentMerged with CallToFunctionParametersRule, checkArgumentsPassedByReference, checkExtraArguments and 56 others (see the rule's Replaces section).
InvalidArrayAccessmago-analyzeranalyse/arrays/invalid-destructuringMerged with ArrayDestructuringRule, FalseArrayAccess, MixedArrayAccess and 5 others (see the rule's Replaces section).
InvalidArrayAccessAssignmentValuemago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
InvalidArrayElementmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
InvalidArrayElementKeymago-analyzeranalyse/arrays/invalid-array-keyMerged with InvalidKeyInArrayItemRule, array.invalidKey.
InvalidArrayIndexmago-analyzeranalyse/types/invalid-offsetMerged with InvalidKeyInArrayDimFetchRule, MixedArrayIndex, NullArrayIndex and 3 others (see the rule's Replaces section).
InvalidAssignmentmago-analyzeranalyse/types/invalid-assignment-targetMerged with InvalidAssignVarRule, assign.invalidExpr, nullsafe.assign and 1 others (see the rule's Replaces section).
InvalidAttributeTargetmago-analyzeranalyse/attributes/invalidMerged with NonClassAttributeClassRule, AbstractClassUsedAsAttribute, AttributeNotRepeatable and 7 others (see the rule's Replaces section).
InvalidBreakmago-analyzeranalyse/control-flow/break-outside-loopMerged with ContinueBreakInLoopRule, InvalidContinue, break.outOfLoop and 1 others (see the rule's Replaces section).
InvalidCallablemago-analyzeranalyse/phpdoc/invalid-param-callable-tagMerged with IncompatibleParamImmediatelyInvokedCallableRule, paramImmediatelyInvokedCallable.nonCallable, paramLaterInvokedCallable.nonCallable and 1 others (see the rule's Replaces section).
InvalidCatchTypemago-analyzeranalyse/types/catch-non-throwableMerged with CaughtExceptionExistenceRule, CatchTypeNotThrowable, InvalidCatchTypeNotClassOrInterface and 2 others (see the rule's Replaces section).
InvalidCatchTypeNotClassOrInterfacemago-analyzeranalyse/types/catch-non-throwableMerged with CaughtExceptionExistenceRule, CatchTypeNotThrowable, InvalidCatchType and 2 others (see the rule's Replaces section).
InvalidClassConstantOnStringmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
InvalidClassStringExpressionmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
InvalidClonemago-analyzeranalyse/types/clone-non-objectMerged with VariableCloningRule, clone.nonObject.
InvalidConstantAccessmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
InvalidConstantSelectormago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
InvalidConstantValuemago-analyzeranalyse/types/define-valueMerged with ValueAssignedToDefineRule, constant.defineValue.
InvalidContinuemago-analyzeranalyse/control-flow/break-outside-loopMerged with ContinueBreakInLoopRule, InvalidBreak, break.outOfLoop and 1 others (see the rule's Replaces section).
InvalidDestructuringSourcemago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
InvalidDocblockmago-analyzeranalyse/phpdoc/invalidMerged with InvalidPhpDocTagValueRule, phpDoc.parseError.
InvalidEnumCaseValuemago-analyzeranalyse/classes/invalid-enumMerged with EnumSanityRule, DuplicateEnumCaseValue, enum.backingType and 9 others (see the rule's Replaces section).
InvalidExtendmago-analyzeranalyse/classes/invalid-extendsMerged with ExistingClassInClassExtendsRule, ExtendFinalClass, InvalidImplement and 11 others (see the rule's Replaces section).
InvalidForeachKeymago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
InvalidForeachValuemago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
InvalidGeneratorReturnTypemago-analyzeranalyse/types/generatorMerged with YieldTypeRule, InvalidYieldKeyType, InvalidYieldValueType and 6 others (see the rule's Replaces section).
InvalidGlobalmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
InvalidImplementmago-analyzeranalyse/classes/invalid-extendsMerged with ExistingClassInClassExtendsRule, ExtendFinalClass, InvalidExtend and 11 others (see the rule's Replaces section).
InvalidIssetExpressionmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
InvalidIteratormago-analyzeranalyse/types/foreach-non-iterableMerged with IterableInForeachRule, FalseIterator, NonIterableObjectIteration and 5 others (see the rule's Replaces section).
InvalidMemberSelectormago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
InvalidMethodAccessmago-analyzeranalyse/classes/invalid-newMerged with InstantiationRule, AbstractInstantiation, EnumInstantiation and 12 others (see the rule's Replaces section). Planned: not ported yet.
InvalidNamedArgumentmago-analyzeranalyse/types/argumentMerged with CallToFunctionParametersRule, checkArgumentsPassedByReference, checkExtraArguments and 56 others (see the rule's Replaces section).
InvalidOperandmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
InvalidOverrideAttributemago-analyzeranalyse/classes/incompatible-property-overrideMerged with OverridingPropertyRule, IncompatiblePropertyAccess, InvalidStaticMethodCall and 26 others (see the rule's Replaces section).
InvalidParameterDefaultValuemago-analyzeranalyse/types/param-defaultMerged with Functions\IncompatibleDefaultParameterTypeRule, parameter.defaultValue.
InvalidParentTypemago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
InvalidPassByReferencemago-analyzeranalyse/types/argumentMerged with CallToFunctionParametersRule, checkArgumentsPassedByReference, checkExtraArguments and 56 others (see the rule's Replaces section).
InvalidPropertyAccessmago-analyzeranalyse/undefined/assigned-propertyMerged with AccessPropertiesInAssignRule, MixedPropertyAccess, NullPropertyAccess and 5 others (see the rule's Replaces section).
InvalidPropertyAssignmentValuemago-analyzeranalyse/types/property-assignMerged with TypesAssignedToPropertiesRule, InvalidPropertyWrite, MixedPropertyTypeCoercion and 3 others (see the rule's Replaces section).
InvalidPropertyDefaultValuemago-analyzeranalyse/types/property-defaultMerged with DefaultValueTypesAssignedToPropertiesRule, IncompatiblePropertyDefault, property.defaultValue.
InvalidPropertyReadmago-analyzer—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-readonlyMerged with TypesAssignedToPropertiesRule, InvalidPropertyAssignmentValue, MixedPropertyTypeCoercion and 3 others (see the rule's Replaces section).
InvalidReturnStatementmago-analyzeranalyse/types/returnMerged with Methods\ReturnTypeRule, FalsableReturnStatement, LessSpecificReturnStatement and 3 others (see the rule's Replaces section).
InvalidScopeKeywordContextmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
InvalidStaticMethodAccessmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
InvalidStaticMethodCallmago-analyzeranalyse/classes/incompatible-property-overrideMerged with OverridingPropertyRule, IncompatiblePropertyAccess, InvalidOverrideAttribute and 26 others (see the rule's Replaces section).
InvalidStaticPropertyAccessmago-analyzeranalyse/classes/incompatible-property-overrideMerged with OverridingPropertyRule, IncompatiblePropertyAccess, InvalidOverrideAttribute and 26 others (see the rule's Replaces section).
InvalidTemplateParametermago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
InvalidThrowmago-analyzeranalyse/types/throw-non-throwableMerged with ThrowExprTypeRule, throw.notThrowable.
InvalidTraitAliasModifiermago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
InvalidTraitUsemago-analyzeranalyse/classes/invalid-extendsMerged with ExistingClassInClassExtendsRule, ExtendFinalClass, InvalidExtend and 11 others (see the rule's Replaces section).
InvalidTypeCastmago-analyzeranalyse/types/invalid-castMerged with InvalidCastRule, cast.bool, cast.double and 2 others (see the rule's Replaces section).
InvalidUnsetmago-analyzeranalyse/types/invalid-unsetMerged with UnsetRule, unset.hookedProperty, unset.offset and 4 others (see the rule's Replaces section).
InvalidYieldKeyTypemago-analyzeranalyse/types/generatorMerged with YieldTypeRule, InvalidGeneratorReturnType, InvalidYieldValueType and 6 others (see the rule's Replaces section).
InvalidYieldValueTypemago-analyzeranalyse/types/generatorMerged with YieldTypeRule, InvalidGeneratorReturnType, InvalidYieldKeyType and 6 others (see the rule's Replaces section).
LessSpecificArgumentmago-analyzeranalyse/types/argumentMerged with CallToFunctionParametersRule, checkArgumentsPassedByReference, checkExtraArguments and 56 others (see the rule's Replaces section).
LessSpecificNestedArgumentTypemago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
LessSpecificNestedReturnStatementmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
LessSpecificReturnStatementmago-analyzeranalyse/types/returnMerged with Methods\ReturnTypeRule, FalsableReturnStatement, InvalidReturnStatement and 3 others (see the rule's Replaces section).
ListDestructureNegativeKeymago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
ListDestructureStringKeymago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
ListUsedInReadContextmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
MatchArmAlwaysTruemago-analyzeranalyse/dead-code/number-comparison-always-constantMerged with NumberComparisonOperatorsConstantConditionRule, UnreachableElseClause, UnreachableMatchArm and 38 others (see the rule's Replaces section).
MatchDefaultArmAlwaysExecutedmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
MatchExpressionOnlyDefaultArmmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
MatchNotExhaustivemago-analyzeranalyse/control-flow/unhandled-matchMerged with MatchExpressionRule, match.alwaysFalse, match.alwaysTrue and 1 others (see the rule's Replaces section).
MatchSubjectTypeIsNevermago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
MethodAccessOnNullmago-analyzeranalyse/classes/invalid-method-callableMerged with MethodCallableRule, MixedMethodAccess, PossibleMethodAccessOnNull and 3 others (see the rule's Replaces section).
MismatchedArrayIndexmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
MissingApiOrInternalmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
MissingConstantTypemago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
MissingConstructormago-analyzeranalyse/classes/uninitialized-propertyMerged with UninitializedPropertyRule, UninitializedProperty, property.uninitialized.
MissingMagicMethodmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
MissingOverrideAttributemago-analyzeranalyse/classes/incompatible-overrideMerged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureConstruct and 48 others (see the rule's Replaces section).
MissingParameterTypemago-analyzeranalyse/types/missing-param-typeMerged with MissingFunctionParameterTypehintRule, missingType.parameter.
MissingPropertyTypemago-analyzeranalyse/types/missing-property-typeMerged with MissingPropertyTypehintRule, missingType.property.
MissingRequiredInterfacemago-analyzeranalyse/classes/missing-required-parentMerged with RequireExtendsRule, MissingRequiredParent, class.missingExtends.
MissingRequiredParentmago-analyzeranalyse/classes/missing-required-parentMerged with RequireExtendsRule, MissingRequiredInterface, class.missingExtends.
MissingReturnStatementmago-analyzeranalyse/types/missing-returnMerged with MissingReturnRule, checkPhpDocMissingReturn, NeverReturn and 2 others (see the rule's Replaces section).
MissingReturnTypemago-analyzeranalyse/types/missing-return-typeMerged with MissingFunctionReturnTypehintRule, checkMissingTypehints, missingType.return.
MissingTemplateParametermago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
MixedArgumentmago-analyzeranalyse/types/argumentMerged with CallToFunctionParametersRule, checkArgumentsPassedByReference, checkExtraArguments and 56 others (see the rule's Replaces section).
MixedArrayAccessmago-analyzeranalyse/arrays/invalid-destructuringMerged with ArrayDestructuringRule, FalseArrayAccess, InvalidArrayAccess and 5 others (see the rule's Replaces section).
MixedArrayAssignmentmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
MixedArrayIndexmago-analyzeranalyse/types/invalid-offsetMerged with InvalidKeyInArrayDimFetchRule, InvalidArrayIndex, NullArrayIndex and 3 others (see the rule's Replaces section).
MixedAssignmentmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
MixedClonemago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
MixedDestructuringShapemago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
MixedMethodAccessmago-analyzeranalyse/classes/invalid-method-callableMerged with MethodCallableRule, MethodAccessOnNull, PossibleMethodAccessOnNull and 3 others (see the rule's Replaces section).
MixedOperandmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
MixedPropertyAccessmago-analyzeranalyse/undefined/assigned-propertyMerged with AccessPropertiesInAssignRule, InvalidPropertyAccess, NullPropertyAccess and 5 others (see the rule's Replaces section).
MixedPropertyTypeCoercionmago-analyzeranalyse/types/property-assignMerged with TypesAssignedToPropertiesRule, InvalidPropertyAssignmentValue, InvalidPropertyWrite and 3 others (see the rule's Replaces section).
MixedReturnStatementmago-analyzeranalyse/types/returnMerged with Methods\ReturnTypeRule, FalsableReturnStatement, InvalidReturnStatement and 3 others (see the rule's Replaces section).
NameAlreadyInUsemago-analyzeranalyse/imports/name-already-in-useMerged with UsedNamesRule, class.nameInUse, enum.nameInUse and 3 others (see the rule's Replaces section).
NamedArgumentAfterPositionalmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
NamedArgumentNotAllowedmago-analyzeranalyse/types/argumentMerged with CallToFunctionParametersRule, checkArgumentsPassedByReference, checkExtraArguments and 56 others (see the rule's Replaces section).
NamedArgumentOverridesPositionalmago-analyzeranalyse/types/argumentMerged with CallToFunctionParametersRule, checkArgumentsPassedByReference, checkExtraArguments and 56 others (see the rule's Replaces section).
NeverMatchingSwitchCasemago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
NeverReturnmago-analyzeranalyse/types/missing-returnMerged with MissingReturnRule, checkPhpDocMissingReturn, MissingReturnStatement and 2 others (see the rule's Replaces section).
NoValidCatchTypeFoundmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
NoValuemago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
NonClassUsedAsAttributemago-analyzeranalyse/attributes/invalidMerged with NonClassAttributeClassRule, AbstractClassUsedAsAttribute, AttributeNotRepeatable and 7 others (see the rule's Replaces section).
NonDocumentedConstantmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
NonDocumentedMethodmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
NonDocumentedPropertymago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
NonExistentAttributeClassmago-analyzeranalyse/attributes/invalid-class-constant-attributeMerged with ClassConstantAttributesRule, attribute.deprecated, attribute.noConstructor and 3 others (see the rule's Replaces section).
NonExistentCatchTypemago-analyzeranalyse/types/invalid-pipeMerged with PipeOperatorRule, NonExistentClass, NonExistentClassLike and 1 others (see the rule's Replaces section).
NonExistentClassmago-analyzeranalyse/types/invalid-pipeMerged with PipeOperatorRule, NonExistentCatchType, NonExistentClassLike and 1 others (see the rule's Replaces section).
NonExistentClassConstantmago-analyzeranalyse/undefined/class-constantMerged with ClassConstantRule, classConstant.deprecatedClass, classConstant.deprecatedEnum and 14 others (see the rule's Replaces section).
NonExistentClassLikemago-analyzeranalyse/types/invalid-pipeanalyse/undefined/traitMerged with PipeOperatorRule, NonExistentCatchType, NonExistentClass and 1 others (see the rule's Replaces section).
NonExistentConstantmago-analyzeranalyse/undefined/constantMerged with ConstantRule, constant.notFound.
NonExistentFunctionmago-analyzeranalyse/undefined/functionMerged with CallToNonExistentFunctionRule, function.notFound.
NonExistentMethodmago-analyzeranalyse/undefined/methodMerged 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-propertyMerged with AccessPropertiesRule, reportMagicProperties, PossiblyNonExistentProperty and 1 others (see the rule's Replaces section).
NonExistentUseImportmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
NonIterableObjectIterationmago-analyzeranalyse/types/foreach-non-iterableMerged with IterableInForeachRule, FalseIterator, InvalidIterator and 5 others (see the rule's Replaces section).
NonStaticAbstractImplementationmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
NullArgumentmago-analyzeranalyse/types/argumentMerged with CallToFunctionParametersRule, checkArgumentsPassedByReference, checkExtraArguments and 56 others (see the rule's Replaces section).
NullArrayAccessmago-analyzeranalyse/arrays/invalid-destructuringMerged with ArrayDestructuringRule, FalseArrayAccess, InvalidArrayAccess and 5 others (see the rule's Replaces section).
NullArrayIndexmago-analyzeranalyse/types/invalid-offsetMerged with InvalidKeyInArrayDimFetchRule, InvalidArrayIndex, MixedArrayIndex and 3 others (see the rule's Replaces section).
NullDestructuringSourcemago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
NullIteratormago-analyzeranalyse/types/foreach-non-iterableMerged with IterableInForeachRule, FalseIterator, InvalidIterator and 5 others (see the rule's Replaces section).
NullOperandmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
NullPropertyAccessmago-analyzeranalyse/undefined/assigned-propertyMerged with AccessPropertiesInAssignRule, InvalidPropertyAccess, MixedPropertyAccess and 5 others (see the rule's Replaces section).
NullableReturnStatementmago-analyzeranalyse/types/returnMerged with Methods\ReturnTypeRule, FalsableReturnStatement, InvalidReturnStatement and 3 others (see the rule's Replaces section).
OverlyWideReturnTypemago-analyzeranalyse/types/too-wide-arrow-function-returnMerged with TooWideArrowFunctionReturnTypehintRule, paramOut.nestedUnusedType, paramOut.tooWideBool and 9 others (see the rule's Replaces section).
OverrideFinalConstantmago-analyzeranalyse/classes/invalid-extendsanalyse/classes/incompatible-constant-overrideMerged with ExistingClassInClassExtendsRule, ExtendFinalClass, InvalidExtend and 11 others (see the rule's Replaces section).
OverrideFinalMethodmago-analyzeranalyse/classes/invalid-extendsMerged with ExistingClassInClassExtendsRule, ExtendFinalClass, InvalidExtend and 11 others (see the rule's Replaces section).
OverrideFinalPropertymago-analyzeranalyse/classes/invalid-extendsMerged with ExistingClassInClassExtendsRule, ExtendFinalClass, InvalidExtend and 11 others (see the rule's Replaces section).
OverrideFinalPropertyHookmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
ParadoxicalConditionmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
ParentOutsideClassScopemago-analyzeranalyse/undefined/instanceof-classMerged with ExistingClassInInstanceOfRule, SelfOutsideClassScope, StaticOutsideClassScope and 4 others (see the rule's Replaces section).
PossibleMethodAccessOnNullmago-analyzeranalyse/classes/invalid-method-callableMerged with MethodCallableRule, MethodAccessOnNull, MixedMethodAccess and 3 others (see the rule's Replaces section).
PossiblyArrayAppendOverflowmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
PossiblyFalseArgumentmago-analyzeranalyse/types/argumentMerged with CallToFunctionParametersRule, checkArgumentsPassedByReference, checkExtraArguments and 56 others (see the rule's Replaces section).
PossiblyFalseArrayAccessmago-analyzeranalyse/arrays/invalid-destructuringMerged with ArrayDestructuringRule, FalseArrayAccess, InvalidArrayAccess and 5 others (see the rule's Replaces section).
PossiblyFalseArrayIndexmago-analyzeranalyse/types/invalid-offsetMerged with InvalidKeyInArrayDimFetchRule, InvalidArrayIndex, MixedArrayIndex and 3 others (see the rule's Replaces section).
PossiblyFalseIteratormago-analyzeranalyse/types/foreach-non-iterableMerged with IterableInForeachRule, FalseIterator, InvalidIterator and 5 others (see the rule's Replaces section).
PossiblyFalseOperandmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
PossiblyInvalidArgumentmago-analyzeranalyse/types/argumentMerged with CallToFunctionParametersRule, checkArgumentsPassedByReference, checkExtraArguments and 56 others (see the rule's Replaces section).
PossiblyInvalidArrayAccessmago-analyzeranalyse/arrays/invalid-destructuringMerged with ArrayDestructuringRule, FalseArrayAccess, InvalidArrayAccess and 5 others (see the rule's Replaces section).
PossiblyInvalidClonemago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
PossiblyInvalidIteratormago-analyzeranalyse/types/foreach-non-iterableMerged with IterableInForeachRule, FalseIterator, InvalidIterator and 5 others (see the rule's Replaces section).
PossiblyInvalidOperandmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
PossiblyInvalidPropertyWritemago-analyzeranalyse/types/property-assignMerged with TypesAssignedToPropertiesRule, InvalidPropertyAssignmentValue, InvalidPropertyWrite and 3 others (see the rule's Replaces section).
PossiblyNonExistentMethodmago-analyzeranalyse/undefined/methodMerged with CallMethodsRule, checkThisOnly, reportMagicMethods and 3 others (see the rule's Replaces section).
PossiblyNonExistentPropertymago-analyzeranalyse/undefined/propertyMerged with AccessPropertiesRule, reportMagicProperties, NonExistentProperty and 1 others (see the rule's Replaces section).
PossiblyNullArgumentmago-analyzeranalyse/types/argumentMerged with CallToFunctionParametersRule, checkArgumentsPassedByReference, checkExtraArguments and 56 others (see the rule's Replaces section).
PossiblyNullArrayAccessmago-analyzeranalyse/arrays/invalid-destructuringMerged with ArrayDestructuringRule, FalseArrayAccess, InvalidArrayAccess and 5 others (see the rule's Replaces section).
PossiblyNullArrayIndexmago-analyzeranalyse/types/invalid-offsetMerged with InvalidKeyInArrayDimFetchRule, InvalidArrayIndex, MixedArrayIndex and 3 others (see the rule's Replaces section).
PossiblyNullDestructuringSourcemago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
PossiblyNullIteratormago-analyzeranalyse/types/foreach-non-iterableMerged with IterableInForeachRule, FalseIterator, InvalidIterator and 5 others (see the rule's Replaces section).
PossiblyNullOperandmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
PossiblyNullPropertyAccessmago-analyzeranalyse/undefined/assigned-propertyMerged with AccessPropertiesInAssignRule, InvalidPropertyAccess, MixedPropertyAccess and 5 others (see the rule's Replaces section).
PossiblyStaticAccessOnInterfacemago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
PossiblyUndefinedArrayIndexmago-analyzeranalyse/undefined/offsetMerged with NonexistentOffsetInArrayDimFetchRule, PossiblyUndefinedIntArrayIndex, PossiblyUndefinedStringArrayIndex and 4 others (see the rule's Replaces section).
PossiblyUndefinedIntArrayIndexmago-analyzeranalyse/undefined/offsetMerged with NonexistentOffsetInArrayDimFetchRule, PossiblyUndefinedArrayIndex, PossiblyUndefinedStringArrayIndex and 4 others (see the rule's Replaces section).
PossiblyUndefinedStringArrayIndexmago-analyzeranalyse/undefined/offsetMerged with NonexistentOffsetInArrayDimFetchRule, PossiblyUndefinedArrayIndex, PossiblyUndefinedIntArrayIndex and 4 others (see the rule's Replaces section).
PossiblyUndefinedVariablemago-analyzeranalyse/undefined/variableMerged with DefinedVariableRule, checkMaybeUndefinedVariables, ReferenceToUndefinedVariable and 4 others (see the rule's Replaces section). Planned: not ported yet.
PropertyTypeCoercionmago-analyzeranalyse/types/property-assignMerged with TypesAssignedToPropertiesRule, InvalidPropertyAssignmentValue, InvalidPropertyWrite and 3 others (see the rule's Replaces section).
PsalmTracemago-analyzeranalyse/debug/dump-typeMerged with DumpTypeRule, TypeInspection, phpstan.dumpType.
RedundantCastmago-analyzerlint/dead-code/no-useless-castMerged with RecastingRemoval, UselessCastRule, cast.useless.
RedundantComparisonmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
RedundantConditionmago-analyzeranalyse/dead-code/impossible-type-checkMerged with ImpossibleCheckTypeFunctionCallRule, ImpossibleCondition, ImpossibleNullTypeComparison and 5 others (see the rule's Replaces section).
RedundantDocblockTypemago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
RedundantIssetCheckmago-analyzeranalyse/statements/invalid-emptyMerged with EmptyRule, checkAdvancedIsset, empty.initializedProperty and 11 others (see the rule's Replaces section).
RedundantKeyCheckmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
RedundantLogicalOperationmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
RedundantNonnullEntryCheckmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
RedundantNonnullTypeComparisonmago-analyzeranalyse/dead-code/impossible-type-checkMerged with ImpossibleCheckTypeFunctionCallRule, ImpossibleCondition, ImpossibleNullTypeComparison and 5 others (see the rule's Replaces section).
RedundantNullCoalescemago-analyzeranalyse/dead-code/redundant-null-coalesceMerged with NullCoalesceRule, nullCoalesce.unnecessary.
RedundantNullsafeOperatormago-analyzerlint/complexity/no-redundant-nullsafeMerged with Pun/no_redundant_nullsafe, NullsafeMethodCallRule, NullsafePropertyFetchRule and 2 others (see the rule's Replaces section).
RedundantTypeComparisonmago-analyzeranalyse/dead-code/impossible-type-checkMerged with ImpossibleCheckTypeFunctionCallRule, ImpossibleCondition, ImpossibleNullTypeComparison and 5 others (see the rule's Replaces section).
ReferenceConstraintViolationmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
ReferenceReusedFromConfusingScopemago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
ReferenceToUndefinedVariablemago-analyzeranalyse/undefined/variableMerged with DefinedVariableRule, checkMaybeUndefinedVariables, PossiblyUndefinedVariable and 4 others (see the rule's Replaces section). Planned: not ported yet.
SelfOutsideClassScopemago-analyzeranalyse/undefined/instanceof-classMerged with ExistingClassInInstanceOfRule, ParentOutsideClassScope, StaticOutsideClassScope and 4 others (see the rule's Replaces section).
SideEffectsInConditionmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
SkipInKeyedDestructuringmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
SpreadInDestructuringmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
StaticAccessOnInterfacemago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
StaticOutsideClassScopemago-analyzeranalyse/undefined/instanceof-classMerged with ExistingClassInInstanceOfRule, ParentOutsideClassScope, SelfOutsideClassScope and 4 others (see the rule's Replaces section).
StringConstantSelectormago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
StringMemberSelectormago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
TemplateConstraintViolationmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
TooFewArgumentsmago-analyzeranalyse/types/argumentMerged with CallToFunctionParametersRule, checkArgumentsPassedByReference, checkExtraArguments and 56 others (see the rule's Replaces section).
TooManyArgumentsmago-analyzeranalyse/types/argumentMerged with CallToFunctionParametersRule, checkArgumentsPassedByReference, checkExtraArguments and 56 others (see the rule's Replaces section).
TooWideThrowTypemago-analyzeranalyse/types/unused-throws-typeMerged with TooWideFunctionThrowTypeRule, throws.unusedType.
TraitConstantOverridemago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
TraitInstantiationmago-analyzeranalyse/types/invalid-closure-signatureMerged with ExistingClassesInClosureTypehintsRule, attribute.target, method.templateTypeNotInParameter and 7 others (see the rule's Replaces section).
TypeConfirmationmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
TypeInspectionmago-analyzeranalyse/debug/dump-typeMerged with DumpTypeRule, PsalmTrace, phpstan.dumpType.
UnavailableClassConstantmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
UnavailableClassLikemago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
UnavailableConstantmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
UnavailableEnumCasemago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
UnavailableFunctionmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
UnavailableMethodmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
UnavailablePropertymago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
UndefinedIntArrayIndexmago-analyzeranalyse/undefined/offsetMerged with NonexistentOffsetInArrayDimFetchRule, PossiblyUndefinedArrayIndex, PossiblyUndefinedIntArrayIndex and 4 others (see the rule's Replaces section).
UndefinedStringArrayIndexmago-analyzeranalyse/undefined/offsetMerged with NonexistentOffsetInArrayDimFetchRule, PossiblyUndefinedArrayIndex, PossiblyUndefinedIntArrayIndex and 4 others (see the rule's Replaces section).
UndefinedVariablemago-analyzeranalyse/undefined/variableMerged with DefinedVariableRule, checkMaybeUndefinedVariables, PossiblyUndefinedVariable and 4 others (see the rule's Replaces section). Planned: not ported yet.
UndefinedVariableInClosureUsemago-analyzeranalyse/undefined/variableMerged with DefinedVariableRule, checkMaybeUndefinedVariables, PossiblyUndefinedVariable and 4 others (see the rule's Replaces section). Planned: not ported yet.
UnevaluatedCodemago-analyzerlint/dead-code/no-unreachable-codeMerged with RemoveUnreachableStatement, UnreachableStatementRule, deadCode.unreachable.
UnhandledThrownTypemago-analyzeranalyse/types/missing-throwsMerged with MissingCheckedExceptionInFunctionThrowsRule, missingType.checkedException.
UnimplementedAbstractMethodmago-analyzeranalyse/classes/abstract-method-in-concrete-classMerged with AbstractMethodInNonAbstractClassRule, method.abstract, method.nonAbstract.
UnimplementedAbstractPropertyHookmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
UninitializedPropertymago-analyzeranalyse/classes/uninitialized-propertyMerged with UninitializedPropertyRule, MissingConstructor, property.uninitialized.
UnknownClassInstantiationmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
UnknownConstantSelectorTypemago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
UnknownIteratorTypemago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
UnknownMatchSubjectTypemago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
UnknownMemberSelectorTypemago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
UnknownYieldFromIteratorTypemago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
UnreachableElseClausemago-analyzeranalyse/dead-code/number-comparison-always-constantMerged with NumberComparisonOperatorsConstantConditionRule, MatchArmAlwaysTrue, UnreachableMatchArm and 38 others (see the rule's Replaces section).
UnreachableMatchArmmago-analyzeranalyse/dead-code/number-comparison-always-constantMerged with NumberComparisonOperatorsConstantConditionRule, MatchArmAlwaysTrue, UnreachableElseClause and 38 others (see the rule's Replaces section).
UnreachableMatchDefaultArmmago-analyzeranalyse/dead-code/number-comparison-always-constantMerged with NumberComparisonOperatorsConstantConditionRule, MatchArmAlwaysTrue, UnreachableElseClause and 38 others (see the rule's Replaces section).
UnreachableSwitchCasemago-analyzeranalyse/dead-code/number-comparison-always-constantMerged with NumberComparisonOperatorsConstantConditionRule, MatchArmAlwaysTrue, UnreachableElseClause and 38 others (see the rule's Replaces section).
UnreachableSwitchDefaultmago-analyzeranalyse/dead-code/number-comparison-always-constantMerged with NumberComparisonOperatorsConstantConditionRule, MatchArmAlwaysTrue, UnreachableElseClause and 38 others (see the rule's Replaces section).
UnresolvableClassConstantmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
UnsafeInstantiationmago-analyzeranalyse/classes/unsafe-new-staticMerged with NewStaticRule, new.static.
UnusedFunctionCallmago-analyzerlint/dead-code/no-unused-expressionMerged with RemoveDeadStmt, NoopRule, UnusedMethodCall and 8 others (see the rule's Replaces section).
UnusedMethodmago-analyzerlint/dead-code/no-unused-private-methodMerged with RemoveUnusedPrivateMethod, UnusedPrivateMethodRule, method.unused.
UnusedMethodCallmago-analyzerlint/dead-code/no-unused-expressionMerged with RemoveDeadStmt, NoopRule, UnusedFunctionCall and 8 others (see the rule's Replaces section).
UnusedParametermago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
UnusedPropertymago-analyzeranalyse/dead-code/unused-private-propertyMerged with UnusedPrivatePropertyRule, WriteOnlyProperty, property.neverRead and 2 others (see the rule's Replaces section).
UnusedStatementmago-analyzerlint/dead-code/no-unused-expressionMerged with RemoveDeadStmt, NoopRule, UnusedFunctionCall and 8 others (see the rule's Replaces section).
UnusedTemplateParametermago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
UselessControlFlowmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
WhereConstraintViolationmago-analyzer—no PHPStan-parity equivalent; Mago analyzer is not a migrate input
WriteOnlyPropertymago-analyzeranalyse/dead-code/unused-private-propertyMerged with UnusedPrivatePropertyRule, UnusedProperty, property.neverRead and 2 others (see the rule's Replaces section).
YieldFromInvalidKeyTypemago-analyzeranalyse/types/generatorMerged with YieldTypeRule, InvalidGeneratorReturnType, InvalidYieldKeyType and 6 others (see the rule's Replaces section).
YieldFromInvalidSendTypemago-analyzeranalyse/types/generatorMerged with YieldTypeRule, InvalidGeneratorReturnType, InvalidYieldKeyType and 6 others (see the rule's Replaces section).
YieldFromInvalidValueTypemago-analyzeranalyse/types/generatorMerged with YieldTypeRule, InvalidGeneratorReturnType, InvalidYieldKeyType and 6 others (see the rule's Replaces section).
YieldFromNonIterablemago-analyzeranalyse/types/yield-from-non-iterableMerged with YieldFromTypeRule, generator.nonIterable, generator.sendType.
YieldOutsideFunctionmago-analyzeranalyse/types/yield-outside-functionMerged 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?