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 name | Pun rule | Notes |
|---|---|---|
Pun/final_controllerpun | lint/laravel/require-final-controller | Merged with final-controller. Options: same. |
Pun/no_implicit_model_querypun | lint/laravel/no-implicit-model-query | Merged with EloquentMagicMethodToQueryBuilder, no-implicit-model-query. Options: same. |
Pun/no_onlypun | lint/pest/no-only | Merged with RemoveOnly, no-only. Options: same. |
Pun/no_redundant_issetpun | lint/complexity/no-redundant-isset | Merged with no-redundant-isset. Options: same. |
Pun/no_redundant_literal_returnpun | lint/complexity/no-redundant-literal-return | Merged with no-redundant-literal-return. Options: same. |
Pun/no_redundant_nullsafepun | lint/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_assignmentpun | lint/dead-code/no-self-assignment | Merged with SimplifyMirrorAssign, no-self-assignment. Options: same. |
Pun/prefer_array_spreadpun | lint/arrays/prefer-array-spread | Merged with prefer-array-spread. Options: same. |
Pun/prefer_array_validation_rulespun | lint/laravel/prefer-array-validation-rules | Merged with ValidationRuleArrayStringValueToArray, prefer-array-validation-rules. Options: same. |
Pun/prefer_dedicated_status_assertionpun | lint/laravel/prefer-dedicated-status-assertion | Merged with AssertStatusToAssertMethod, prefer-dedicated-status-assertion. Options: same. |
Pun/prefer_explode_over_preg_splitpun | lint/performance/prefer-explode-over-preg-split | Merged with prefer-explode-over-preg-split. Options: same. |
Pun/prefer_fake_helperpun | lint/laravel/prefer-fake-helper | Merged with prefer-fake-helper. Options: same. |
Pun/prefer_first_class_callablepun | lint/php-8.1/prefer-first-class-callable | Merged with prefer-first-class-callable. Options: same. |
Pun/sensitive_parameterpun | lint/security/add-sensitive-parameter | Merged with sensitive-parameter. Options: same. |
Pun/use_dedicated_expectationpun | lint/pest/prefer-dedicated-expectation | Merged with use-dedicated-expectation. Options: same. |
Pun/use_simpler_expectationpun | lint/pest/prefer-simpler-expectation | Merged with SimplifyComparisonExpectations, use-simpler-expectation. Options: same. |
Pun/use_specific_expectationspun | lint/pest/prefer-specific-expectations | Merged with SimplifyToLiteralBoolean, use-specific-expectations. Options: same. |
ambiguous-constant-accessmago-linter | lint/style/no-ambiguous-constant | Same. Options: same. |
ambiguous-function-callmago-linter | lint/style/no-ambiguous-function | Same. Options: same. |
array-stylemago-linter | format/arrays/syntax | Merged with array_syntax. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options). |
assert-descriptionmago-linter | lint/functions/require-assert-description | Same. Options: same. |
assertion-stylemago-linter | lint/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-linter | format/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-linter | format/strings/explicit-variable | Merged with explicit_string_variable. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options). |
class-namemago-linter | lint/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-linter | lint/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-linter | lint/complexity/no-constant-condition | Merged with RemoveDeadIfBlock. Options: same. |
constant-namemago-linter | lint/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-linter | lint/complexity/no-excessive-cyclomatic | Same. Options: same. |
deprecated-castmago-linter | format/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-linter | format/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-linter | format/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-linter | lint/security/no-restricted-functions | Same. Options: same. |
disallowed-type-instantiationmago-linter | lint/security/no-restricted-instantiation | Same. Options: same. |
enum-namemago-linter | lint/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-linter | lint/complexity/no-excessive-nesting | Same. Options: same. |
excessive-parameter-listmago-linter | lint/complexity/no-excessive-parameters | Same. Options: same. |
explicit-nullable-parammago-linter | format/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-linter | format/statements/octal-notation | Merged with octal_notation. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options). |
file-namemago-linter | lint/classes/require-class-matches-file | Merged with psr_autoloading. Options: same. |
final-controllermago-linter | lint/laravel/require-final-controller | Merged with Pun/final_controller. Options: same. |
function-namemago-linter | lint/style/require-naming-convention | Merged with class-name, constant-name, enum-name and 5 others (see the rule's Replaces section). Options: same. |
halsteadmago-linter | lint/complexity/no-excessive-halstead | Same. Options: same. |
identity-comparisonmago-linter | lint/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-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-linter | lint/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-linter | lint/style/prefer-instanceof-stringable | Same. Options: same. |
interface-namemago-linter | lint/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-linter | lint/tags/no-invalid-open-tag | Same. Options: same. |
kan-defectmago-linter | lint/complexity/no-excessive-kan-defect | Same. Options: same. |
literal-named-argumentmago-linter | lint/complexity/prefer-named-literal-argument | Same. Options: same. |
loop-does-not-iteratemago-linter | lint/style/no-unreachable-loop | Same. Options: same. |
lowercase-keywordmago-linter | format/casing/keywords | Merged with lowercase_keywords. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options). |
lowercase-type-hintmago-linter | format/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-linter | lint/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-linter | lint/laravel/no-controller-middleware | Same. Options: same. |
missing-docsmago-linter | lint/style/require-phpdoc | Same. Options: same. |
no-alias-functionmago-linter | lint/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-linter | format/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-linter | lint/style/no-array-accumulation-in-loop | Same. Options: same. |
no-assign-in-argumentmago-linter | lint/functions/no-assign-in-argument | Same. Options: same. |
no-assign-in-conditionmago-linter | lint/control-flow/no-assign-in-condition | Same. Options: same. |
no-boolean-flag-parametermago-linter | lint/complexity/no-boolean-flag-parameter | Same. Options: same. |
no-closing-tagmago-linter | format/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-linter | — | WordPress integration: out of scope (Laravel-first) |
no-dead-storemago-linter | lint/dead-code/no-unused-assignment | Merged with RemoveDoubleAssign, RemoveUnusedVariableAssign, no-redundant-variable. Options: same. |
no-debug-symbolsmago-linter | lint/security/no-debug-calls | Merged with RemoveDebugExpectations. Options: same. |
no-direct-db-querymago-linter | — | WordPress integration: out of scope (Laravel-first) |
no-duplicate-match-armmago-linter | lint/complexity/no-duplicate-match-arm | Same. Options: same. |
no-else-clausemago-linter | lint/complexity/no-else-clause | Same. Options: same. |
no-emptymago-linter | lint/style/no-empty | Merged with DisallowedEmptyRule, empty.notAllowed. Options: same. |
no-empty-catch-clausemago-linter | lint/control-flow/no-empty-catch | Same. Options: same. |
no-empty-commentmago-linter | format/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-linter | lint/dead-code/no-empty-block | Merged with RemoveDeadIfForeachFor, RemoveDeadLoop. Options: same. |
no-error-control-operatormago-linter | lint/operators/no-error-suppression | Merged with error_suppression. Options: same. |
no-evalmago-linter | lint/security/no-eval | Same. Options: same. |
no-ffimago-linter | lint/security/no-ffi | Same. Options: same. |
no-fully-qualified-global-class-likemago-linter | format/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-linter | format/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-linter | format/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-linter | lint/security/no-global | Same. Options: same. |
no-gotomago-linter | lint/complexity/no-goto | Same. Options: same. |
no-hash-commentmago-linter | format/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-linter | lint/style/no-hash-emoji | Same. Options: same. |
no-implicit-model-querymago-linter | lint/laravel/no-implicit-model-query | Merged with Pun/no_implicit_model_query, EloquentMagicMethodToQueryBuilder. Options: same. |
no-ini-setmago-linter | lint/style/no-ini-set | Same. Options: same. |
no-inlinemago-linter | lint/style/no-inline-html | Same. Options: same. |
no-insecure-comparisonmago-linter | lint/security/no-insecure-comparison | Same. Options: same. |
no-is-nullmago-linter | lint/style/no-is-null | Merged with is_null. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options). |
no-issetmago-linter | lint/style/no-isset | Same. Options: same. |
no-iterator-to-array-in-foreachmago-linter | lint/complexity/no-iterator-to-array-in-foreach | Same. Options: same. |
no-legacy-constructormago-linter | lint/style/no-php4-constructor | Merged with no_php4_constructor. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options). |
no-literal-namespace-stringmago-linter | lint/style/prefer-class-constant | Merged with class_keyword, StringClassNameToClassConstant, UseClassKeywordForClassNameResolution. Options: same. |
no-literal-passwordmago-linter | lint/security/no-literal-password | Same. Options: same. |
no-missing-format-argumentmago-linter | lint/functions/no-missing-format-argument | Same. Options: same. |
no-multi-assignmentsmago-linter | lint/style/no-multi-assign | Merged with SplitDoubleAssign. Options: same. |
no-negated-ternarymago-linter | lint/refactor/no-negated-condition | Same. Options: same. |
no-nested-ternarymago-linter | lint/style/no-nested-ternary | Same. Options: same. |
no-noopmago-linter | lint/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-linter | lint/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-linter | lint/pest/no-only | Merged with Pun/no_only, RemoveOnly. Options: same. |
no-parameter-shadowingmago-linter | lint/style/no-parameter-shadowing | Same. Options: same. |
no-php-tag-terminatormago-linter | format/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-linter | lint/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-linter | format/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-linter | format/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-linter | lint/dead-code/no-useless-continue | Merged with RemoveDeadContinue. Options: same. |
no-redundant-elsemago-linter | lint/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-linter | lint/complexity/no-empty-file | Same. Options: same. |
no-redundant-finalmago-linter | lint/style/no-redundant-final | Merged with no_unneeded_final_method. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options). |
no-redundant-issetmago-linter | lint/complexity/no-redundant-isset | Merged with Pun/no_redundant_isset. Options: same. |
no-redundant-labelmago-linter | lint/complexity/no-unused-label | Merged with UnusedLabelRule, label.unused. Options: same. |
no-redundant-literal-returnmago-linter | lint/complexity/no-redundant-literal-return | Merged with Pun/no_redundant_literal_return. Options: same. |
no-redundant-mathmago-linter | lint/dead-code/no-useless-math | Merged with RemoveDeadZeroAndOneOperation. Options: same. |
no-redundant-method-overridemago-linter | lint/dead-code/no-useless-override | Merged with RemoveParentDelegatingClassMethod. Options: same. |
no-redundant-nullsafemago-linter | lint/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-linter | format/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-linter | lint/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-linter | format/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-linter | lint/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-linter | lint/dead-code/no-unused-assignment | Merged with RemoveDoubleAssign, RemoveUnusedVariableAssign, no-dead-store. Options: same. |
no-redundant-write-visibilitymago-linter | lint/complexity/no-redundant-write-visibility | Same. Options: same. |
no-redundant-yield-frommago-linter | lint/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-linter | lint/laravel/no-request-all | Same. Options: same. |
no-request-variablemago-linter | lint/security/no-request-variable | Same. Options: same. |
no-roles-as-capabilitiesmago-linter | — | WordPress integration: out of scope (Laravel-first) |
no-self-assignmentmago-linter | lint/dead-code/no-self-assignment | Merged with Pun/no_self_assignment, SimplifyMirrorAssign. Options: same. |
no-service-state-mutationmago-linter | — | Symfony integration: out of scope (Laravel-first) |
no-shell-execute-stringmago-linter | format/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-linter | format/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-linter | format/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-linter | lint/style/no-short-ternary | Merged with DisallowedShortTernaryRule, ternary.shortNotAllowed. Options: same. |
no-side-effects-with-declarationsmago-linter | lint/style/no-side-effects-with-declarations | Same. Options: same. |
no-sprintf-concatmago-linter | lint/style/no-sprintf-concat | Same. Options: same. |
no-trailing-spacemago-linter | format/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-linter | lint/classes/no-underscore-class | Same. Options: same. |
no-unescaped-outputmago-linter | — | WordPress integration: out of scope (Laravel-first) |
no-unsafe-finallymago-linter | lint/control-flow/no-unsafe-finally | Same. Options: same. |
no-unused-closure-capturemago-linter | lint/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-linter | lint/dead-code/no-unused-global | Same. Options: same. |
no-unused-return-valuemago-linter | lint/dead-code/no-unused-return-value | Same. Options: same. |
no-unused-staticmago-linter | lint/dead-code/no-unused-static | Same. Options: same. |
no-variable-variablemago-linter | lint/style/no-variable-variable | Merged with VariableVariablesRule, variable.dynamicName. Options: same. |
no-void-reference-returnmago-linter | lint/functions/no-void-reference-return | Same. Options: same. |
nonce-verificationmago-linter | — | WordPress integration: out of scope (Laravel-first) |
optional-param-ordermago-linter | lint/functions/no-required-after-optional | Merged with OptionalParametersAfterRequired, parameter.requiredAfterOptional. Options: same. |
prefer-anonymous-migrationmago-linter | lint/laravel/prefer-anonymous-migration | Merged with AnonymousMigrations. Options: same. |
prefer-array-spreadmago-linter | lint/arrays/prefer-array-spread | Merged with Pun/prefer_array_spread. Options: same. |
prefer-array-validation-rulesmago-linter | lint/laravel/prefer-array-validation-rules | Merged with Pun/prefer_array_validation_rules, ValidationRuleArrayStringValueToArray. Options: same. |
prefer-arrow-functionmago-linter | lint/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-linter | lint/laravel/prefer-casts-method | Same. Options: same. |
prefer-datetimeimmutable-create-from-timestampmago-linter | lint/style/prefer-create-from-timestamp | Same. Options: same. |
prefer-dedicated-status-assertionmago-linter | lint/laravel/prefer-dedicated-status-assertion | Merged with Pun/prefer_dedicated_status_assertion, AssertStatusToAssertMethod. Options: same. |
prefer-early-continuemago-linter | lint/style/prefer-early-continue | Same. Options: same. |
prefer-early-returnmago-linter | lint/style/prefer-early-return | Merged with ChangeIfElseValueAssignToEarlyReturn. Options: same. |
prefer-explode-over-preg-splitmago-linter | lint/performance/prefer-explode-over-preg-split | Merged with Pun/prefer_explode_over_preg_split. Options: same. |
prefer-fake-helpermago-linter | lint/laravel/prefer-fake-helper | Merged with Pun/prefer_fake_helper. Options: same. |
prefer-first-class-callablemago-linter | lint/php-8.1/prefer-first-class-callable | Merged with Pun/prefer_first_class_callable. Options: same. |
prefer-interfacemago-linter | — | Symfony integration: out of scope (Laravel-first) |
prefer-null-coalescing-assignmentmago-linter | lint/operators/prefer-coalesce-assign-over-fallback | Same. Options: same. |
prefer-pre-incrementmago-linter | format/operators/increment-style | Merged with increment_style. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options). |
prefer-selfmago-linter | lint/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-linter | lint/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-linter | lint/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-linter | lint/phpunit/prefer-test-attribute | Same. Options: same. |
prefer-view-arraymago-linter | lint/laravel/prefer-view-array | Same. Options: same. |
prefer-while-loopmago-linter | lint/style/prefer-while-loop | Same. Options: same. |
prepared-sqlmago-linter | — | WordPress integration: out of scope (Laravel-first) |
property-namemago-linter | lint/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-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-linter | format/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-linter | lint/classes/prefer-self-in-final | Merged with self_static_accessor, ConvertStaticToSelf. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options). |
require-namespacemago-linter | lint/style/require-namespace | Same. Options: same. |
require-preg-quote-delimitermago-linter | lint/security/require-preg-quote-delimiter | Same. Options: same. |
sensitive-parametermago-linter | lint/security/add-sensitive-parameter | Merged with Pun/sensitive_parameter. Options: same. |
single-class-per-filemago-linter | lint/style/no-multiple-classes-per-file | Same. Options: same. |
sorted-integer-keysmago-linter | lint/style/require-sorted-integer-keys | Same. Options: same. |
str-containsmago-linter | lint/style/prefer-str-contains | Merged with modernize_strpos, str-starts-with. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options). |
str-starts-withmago-linter | lint/style/prefer-str-contains | Merged with modernize_strpos, str-contains. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options). |
strict-assertionsmago-linter | lint/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-linter | lint/types/require-strict-param | Merged with strict_param. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options). |
strict-typesmago-linter | lint/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-linter | lint/strings/require-interpolation-style | Same. Options: same. |
suspicious-explode-argumentsmago-linter | lint/functions/no-swapped-explode-arguments | Same. Options: same. |
switch-continue-to-breakmago-linter | lint/control-flow/no-switch-continue | Merged with switch_continue_to_break. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options). |
tagged-fixmemago-linter | lint/style/require-todo-reference | Merged with tagged-todo. Options: same. |
tagged-todomago-linter | lint/style/require-todo-reference | Merged with tagged-fixme. Options: same. |
tainted-data-to-sinkmago-linter | lint/security/no-tainted-data | Same. Options: same. |
too-many-enum-casesmago-linter | lint/complexity/no-excessive-enum-cases | Same. Options: same. |
too-many-methodsmago-linter | lint/complexity/no-excessive-methods | Same. Options: same. |
too-many-propertiesmago-linter | lint/complexity/no-excessive-properties | Same. Options: same. |
trait-namemago-linter | lint/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-linter | lint/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-linter | lint/pest/prefer-dedicated-expectation | Merged with Pun/use_dedicated_expectation. Options: same. |
use-simpler-expectationmago-linter | lint/pest/prefer-simpler-expectation | Merged with Pun/use_simpler_expectation, SimplifyComparisonExpectations. Options: same. |
use-specific-assertionsmago-linter | lint/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-linter | lint/pest/prefer-specific-expectations | Merged with Pun/use_specific_expectations, SimplifyToLiteralBoolean. Options: same. |
use-wp-functionsmago-linter | — | WordPress integration: out of scope (Laravel-first) |
valid-docblockmago-linter | lint/style/no-invalid-phpdoc | Same. Options: same. |
validated-sanitized-inputmago-linter | — | WordPress integration: out of scope (Laravel-first) |
variable-namemago-linter | lint/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-linter | format/control-flow/yoda | Merged with yoda_style. Options: none (Mago options do not carry; Pun uses the CS-Fixer rule options). |
AbstractClassUsedAsAttributemago-analyzer | analyse/attributes/invalid | Merged with NonClassAttributeClassRule, AttributeNotRepeatable, ClassNotMarkedAsAttribute and 7 others (see the rule's Replaces section). |
AbstractInstantiationmago-analyzer | analyse/classes/invalid-new | Merged 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-analyzer | analyse/arrays/read-without-offset | Merged 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-analyzer | analyse/types/assign-to-this | Merged with InvalidVariableAssignRule, assign.this. |
AttributeNotRepeatablemago-analyzer | analyse/attributes/invalid | Merged 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-analyzer | analyse/types/catch-non-throwable | Merged 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-analyzer | analyse/attributes/invalid | Merged 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-analyzer | analyse/types/dead-catch | Merged with CatchWithUnthrownExceptionRule, DuplicateCaughtType, catch.alreadyCaught and 1 others (see the rule's Replaces section). |
DeprecatedClassmago-analyzer | analyse/deprecated/class | Merged with RestrictedDeprecatedClassNameUsageExtension, catch.deprecatedClass, catch.deprecatedEnum and 35 others (see the rule's Replaces section). |
DeprecatedClassConstantmago-analyzer | analyse/deprecated/class-constant | Merged with RestrictedDeprecatedClassConstantUsageExtension, classConstant.deprecated, enumCase.deprecated. |
DeprecatedClosuremago-analyzer | — | no PHPStan-parity equivalent; Mago analyzer is not a migrate input |
DeprecatedConstantmago-analyzer | analyse/deprecated/constant | Merged with FetchingDeprecatedConstRule, constant.deprecated. |
DeprecatedFeaturemago-analyzer | — | no PHPStan-parity equivalent; Mago analyzer is not a migrate input |
DeprecatedFunctionmago-analyzer | analyse/deprecated/function | Merged with RestrictedDeprecatedFunctionUsageExtension, function.deprecated. |
DeprecatedMethodmago-analyzer | analyse/deprecated/method | Merged with RestrictedDeprecatedMethodUsageExtension, method.deprecated, staticMethod.deprecated. |
DeprecatedPropertymago-analyzer | analyse/deprecated/property | Merged 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-analyzer | analyse/phpdoc/type-mismatch | Merged with IncompatiblePhpDocTypeRule, paramClosureThis.nonClosure, parameter.phpDocType and 3 others (see the rule's Replaces section). |
DuplicateArrayKeymago-analyzer | lint/dead-code/no-duplicate-array-key | Merged with RemoveDuplicatedArrayKey, DuplicateKeysInLiteralArraysRule, array.duplicateKey. |
DuplicateCaughtTypemago-analyzer | analyse/types/dead-catch | Merged with CatchWithUnthrownExceptionRule, DeadCatch, catch.alreadyCaught and 1 others (see the rule's Replaces section). |
DuplicateClosureUseVariablemago-analyzer | analyse/functions/invalid-closure-use | Merged with InvalidLexicalVariablesInClosureUseRule, closure.useDuplicate, closure.useSuperGlobal and 1 others (see the rule's Replaces section). |
DuplicateDefinitionmago-analyzer | analyse/classes/duplicate-declaration | Merged with DuplicateDeclarationRule, class.duplicate, class.duplicateConstant and 19 others (see the rule's Replaces section). |
DuplicateEnumCaseValuemago-analyzer | analyse/classes/invalid-enum | Merged with EnumSanityRule, InvalidEnumCaseValue, enum.backingType and 9 others (see the rule's Replaces section). |
DuplicateNamedArgumentmago-analyzer | analyse/types/argument | Merged 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-analyzer | analyse/classes/dynamic-static-call | Merged with DynamicCallOnStaticMethodsRule, staticMethod.dynamicCall. |
EmptyMatchExpressionmago-analyzer | — | no PHPStan-parity equivalent; Mago analyzer is not a migrate input |
EnumInstantiationmago-analyzer | analyse/classes/invalid-new | Merged 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-analyzer | analyse/classes/invalid-extends | Merged with ExistingClassInClassExtendsRule, InvalidExtend, InvalidImplement and 11 others (see the rule's Replaces section). |
FalsableReturnStatementmago-analyzer | analyse/types/return | Merged with Methods\ReturnTypeRule, InvalidReturnStatement, LessSpecificReturnStatement and 3 others (see the rule's Replaces section). |
FalseArgumentmago-analyzer | analyse/types/argument | Merged with CallToFunctionParametersRule, checkArgumentsPassedByReference, checkExtraArguments and 56 others (see the rule's Replaces section). |
FalseArrayAccessmago-analyzer | analyse/arrays/invalid-destructuring | Merged with ArrayDestructuringRule, InvalidArrayAccess, MixedArrayAccess and 5 others (see the rule's Replaces section). |
FalseIteratormago-analyzer | analyse/types/foreach-non-iterable | Merged 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-analyzer | analyse/dead-code/impossible-type-check | Merged 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-analyzer | analyse/dead-code/impossible-type-check | Merged with ImpossibleCheckTypeFunctionCallRule, ImpossibleCondition, ImpossibleTypeComparison and 5 others (see the rule's Replaces section). |
ImpossibleTypeComparisonmago-analyzer | analyse/dead-code/impossible-type-check | Merged 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-analyzer | analyse/classes/incompatible-override | Merged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureStaticVariable and 48 others (see the rule's Replaces section). |
ImpureStaticVariablemago-analyzer | analyse/classes/incompatible-override | Merged 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-analyzer | analyse/classes/incompatible-override | Merged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureConstruct and 48 others (see the rule's Replaces section). |
IncompatibleConstantTypemago-analyzer | analyse/classes/incompatible-override | Merged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureConstruct and 48 others (see the rule's Replaces section). |
IncompatibleConstantVisibilitymago-analyzer | analyse/classes/incompatible-override | Merged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureConstruct and 48 others (see the rule's Replaces section). |
IncompatibleParameterCountmago-analyzer | analyse/classes/incompatible-override | Merged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureConstruct and 48 others (see the rule's Replaces section). |
IncompatibleParameterNamemago-analyzer | analyse/types/renamed-parameter-in-subtype | Merged with MethodCallWithPossiblyRenamedNamedArgumentRule, argument.parameterRenamedInSubtype. |
IncompatibleParameterTypemago-analyzer | analyse/classes/incompatible-override | Merged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureConstruct and 48 others (see the rule's Replaces section). |
IncompatiblePropertyAccessmago-analyzer | analyse/classes/incompatible-property-override | Merged with OverridingPropertyRule, InvalidOverrideAttribute, InvalidStaticMethodCall and 26 others (see the rule's Replaces section). |
IncompatiblePropertyDefaultmago-analyzer | analyse/types/property-default | Merged with DefaultValueTypesAssignedToPropertiesRule, InvalidPropertyDefaultValue, property.defaultValue. |
IncompatiblePropertyHookParameterTypemago-analyzer | analyse/classes/invalid-property-hook | Merged with SetPropertyHookParameterRule, propertySetHook.nativeParameterType, propertySetHook.parameterType. |
IncompatiblePropertyHookSignaturemago-analyzer | — | no PHPStan-parity equivalent; Mago analyzer is not a migrate input |
IncompatiblePropertyOverridemago-analyzer | analyse/classes/incompatible-override | Merged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureConstruct and 48 others (see the rule's Replaces section). |
IncompatiblePropertyReadonlymago-analyzer | analyse/classes/incompatible-override | Merged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureConstruct and 48 others (see the rule's Replaces section). |
IncompatiblePropertyStaticmago-analyzer | analyse/classes/incompatible-override | Merged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureConstruct and 48 others (see the rule's Replaces section). |
IncompatiblePropertyTypemago-analyzer | analyse/classes/incompatible-override | Merged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureConstruct and 48 others (see the rule's Replaces section). |
IncompatiblePropertyVisibilitymago-analyzer | analyse/classes/incompatible-override | Merged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureConstruct and 48 others (see the rule's Replaces section). |
IncompatibleReadonlyModifiermago-analyzer | analyse/classes/incompatible-overrideanalyse/classes/incompatible-property-override | Merged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureConstruct and 48 others (see the rule's Replaces section). |
IncompatibleReturnTypemago-analyzer | analyse/classes/incompatible-override | Merged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureConstruct and 48 others (see the rule's Replaces section). |
IncompatibleStaticModifiermago-analyzer | analyse/classes/incompatible-overrideanalyse/classes/incompatible-property-override | Merged 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-analyzer | analyse/types/throws-not-covariant | Merged with MethodThrowTypeCovarianceRule, throws.notCovariant, throws.notCovariantWithImplicitVoid and 1 others (see the rule's Replaces section). |
IncompatibleVisibilitymago-analyzer | analyse/classes/incompatible-override | Merged 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-analyzer | analyse/undefined/group-import | Merged with ExistingNamesInGroupUseRule, checkClassCaseSensitivity, IncorrectFunctionCasing and 5 others (see the rule's Replaces section). |
IncorrectFunctionCasingmago-analyzer | analyse/undefined/group-import | Merged with ExistingNamesInGroupUseRule, checkClassCaseSensitivity, IncorrectClassLikeCasing and 5 others (see the rule's Replaces section). |
InterfaceInstantiationmago-analyzer | analyse/classes/invalid-new | Merged with InstantiationRule, AbstractInstantiation, EnumInstantiation and 12 others (see the rule's Replaces section). Planned: not ported yet. |
InvalidArgumentmago-analyzer | analyse/types/argument | Merged with CallToFunctionParametersRule, checkArgumentsPassedByReference, checkExtraArguments and 56 others (see the rule's Replaces section). |
InvalidArrayAccessmago-analyzer | analyse/arrays/invalid-destructuring | Merged 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-analyzer | analyse/arrays/invalid-array-key | Merged with InvalidKeyInArrayItemRule, array.invalidKey. |
InvalidArrayIndexmago-analyzer | analyse/types/invalid-offset | Merged with InvalidKeyInArrayDimFetchRule, MixedArrayIndex, NullArrayIndex and 3 others (see the rule's Replaces section). |
InvalidAssignmentmago-analyzer | analyse/types/invalid-assignment-target | Merged with InvalidAssignVarRule, assign.invalidExpr, nullsafe.assign and 1 others (see the rule's Replaces section). |
InvalidAttributeTargetmago-analyzer | analyse/attributes/invalid | Merged with NonClassAttributeClassRule, AbstractClassUsedAsAttribute, AttributeNotRepeatable and 7 others (see the rule's Replaces section). |
InvalidBreakmago-analyzer | analyse/control-flow/break-outside-loop | Merged with ContinueBreakInLoopRule, InvalidContinue, break.outOfLoop and 1 others (see the rule's Replaces section). |
InvalidCallablemago-analyzer | analyse/phpdoc/invalid-param-callable-tag | Merged with IncompatibleParamImmediatelyInvokedCallableRule, paramImmediatelyInvokedCallable.nonCallable, paramLaterInvokedCallable.nonCallable and 1 others (see the rule's Replaces section). |
InvalidCatchTypemago-analyzer | analyse/types/catch-non-throwable | Merged with CaughtExceptionExistenceRule, CatchTypeNotThrowable, InvalidCatchTypeNotClassOrInterface and 2 others (see the rule's Replaces section). |
InvalidCatchTypeNotClassOrInterfacemago-analyzer | analyse/types/catch-non-throwable | Merged 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-analyzer | analyse/types/clone-non-object | Merged 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-analyzer | analyse/types/define-value | Merged with ValueAssignedToDefineRule, constant.defineValue. |
InvalidContinuemago-analyzer | analyse/control-flow/break-outside-loop | Merged 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-analyzer | analyse/phpdoc/invalid | Merged with InvalidPhpDocTagValueRule, phpDoc.parseError. |
InvalidEnumCaseValuemago-analyzer | analyse/classes/invalid-enum | Merged with EnumSanityRule, DuplicateEnumCaseValue, enum.backingType and 9 others (see the rule's Replaces section). |
InvalidExtendmago-analyzer | analyse/classes/invalid-extends | Merged 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-analyzer | analyse/types/generator | Merged 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-analyzer | analyse/classes/invalid-extends | Merged 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-analyzer | analyse/types/foreach-non-iterable | Merged 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-analyzer | analyse/classes/invalid-new | Merged with InstantiationRule, AbstractInstantiation, EnumInstantiation and 12 others (see the rule's Replaces section). Planned: not ported yet. |
InvalidNamedArgumentmago-analyzer | analyse/types/argument | Merged 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-analyzer | analyse/classes/incompatible-property-override | Merged with OverridingPropertyRule, IncompatiblePropertyAccess, InvalidStaticMethodCall and 26 others (see the rule's Replaces section). |
InvalidParameterDefaultValuemago-analyzer | analyse/types/param-default | Merged with Functions\IncompatibleDefaultParameterTypeRule, parameter.defaultValue. |
InvalidParentTypemago-analyzer | — | no PHPStan-parity equivalent; Mago analyzer is not a migrate input |
InvalidPassByReferencemago-analyzer | analyse/types/argument | Merged with CallToFunctionParametersRule, checkArgumentsPassedByReference, checkExtraArguments and 56 others (see the rule's Replaces section). |
InvalidPropertyAccessmago-analyzer | analyse/undefined/assigned-property | Merged with AccessPropertiesInAssignRule, MixedPropertyAccess, NullPropertyAccess and 5 others (see the rule's Replaces section). |
InvalidPropertyAssignmentValuemago-analyzer | analyse/types/property-assign | Merged with TypesAssignedToPropertiesRule, InvalidPropertyWrite, MixedPropertyTypeCoercion and 3 others (see the rule's Replaces section). |
InvalidPropertyDefaultValuemago-analyzer | analyse/types/property-default | Merged with DefaultValueTypesAssignedToPropertiesRule, IncompatiblePropertyDefault, property.defaultValue. |
InvalidPropertyReadmago-analyzer | — | no PHPStan-parity equivalent; Mago analyzer is not a migrate input |
InvalidPropertyWritemago-analyzer | analyse/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-analyzer | analyse/types/return | Merged 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-analyzer | analyse/classes/incompatible-property-override | Merged with OverridingPropertyRule, IncompatiblePropertyAccess, InvalidOverrideAttribute and 26 others (see the rule's Replaces section). |
InvalidStaticPropertyAccessmago-analyzer | analyse/classes/incompatible-property-override | Merged 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-analyzer | analyse/types/throw-non-throwable | Merged with ThrowExprTypeRule, throw.notThrowable. |
InvalidTraitAliasModifiermago-analyzer | — | no PHPStan-parity equivalent; Mago analyzer is not a migrate input |
InvalidTraitUsemago-analyzer | analyse/classes/invalid-extends | Merged with ExistingClassInClassExtendsRule, ExtendFinalClass, InvalidExtend and 11 others (see the rule's Replaces section). |
InvalidTypeCastmago-analyzer | analyse/types/invalid-cast | Merged with InvalidCastRule, cast.bool, cast.double and 2 others (see the rule's Replaces section). |
InvalidUnsetmago-analyzer | analyse/types/invalid-unset | Merged with UnsetRule, unset.hookedProperty, unset.offset and 4 others (see the rule's Replaces section). |
InvalidYieldKeyTypemago-analyzer | analyse/types/generator | Merged with YieldTypeRule, InvalidGeneratorReturnType, InvalidYieldValueType and 6 others (see the rule's Replaces section). |
InvalidYieldValueTypemago-analyzer | analyse/types/generator | Merged with YieldTypeRule, InvalidGeneratorReturnType, InvalidYieldKeyType and 6 others (see the rule's Replaces section). |
LessSpecificArgumentmago-analyzer | analyse/types/argument | Merged 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-analyzer | analyse/types/return | Merged 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-analyzer | analyse/dead-code/number-comparison-always-constant | Merged 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-analyzer | analyse/control-flow/unhandled-match | Merged 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-analyzer | analyse/classes/invalid-method-callable | Merged 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-analyzer | analyse/classes/uninitialized-property | Merged with UninitializedPropertyRule, UninitializedProperty, property.uninitialized. |
MissingMagicMethodmago-analyzer | — | no PHPStan-parity equivalent; Mago analyzer is not a migrate input |
MissingOverrideAttributemago-analyzer | analyse/classes/incompatible-override | Merged with OverridingMethodRule, checkPhpDocMethodSignatures, ImpureConstruct and 48 others (see the rule's Replaces section). |
MissingParameterTypemago-analyzer | analyse/types/missing-param-type | Merged with MissingFunctionParameterTypehintRule, missingType.parameter. |
MissingPropertyTypemago-analyzer | analyse/types/missing-property-type | Merged with MissingPropertyTypehintRule, missingType.property. |
MissingRequiredInterfacemago-analyzer | analyse/classes/missing-required-parent | Merged with RequireExtendsRule, MissingRequiredParent, class.missingExtends. |
MissingRequiredParentmago-analyzer | analyse/classes/missing-required-parent | Merged with RequireExtendsRule, MissingRequiredInterface, class.missingExtends. |
MissingReturnStatementmago-analyzer | analyse/types/missing-return | Merged with MissingReturnRule, checkPhpDocMissingReturn, NeverReturn and 2 others (see the rule's Replaces section). |
MissingReturnTypemago-analyzer | analyse/types/missing-return-type | Merged with MissingFunctionReturnTypehintRule, checkMissingTypehints, missingType.return. |
MissingTemplateParametermago-analyzer | — | no PHPStan-parity equivalent; Mago analyzer is not a migrate input |
MixedArgumentmago-analyzer | analyse/types/argument | Merged with CallToFunctionParametersRule, checkArgumentsPassedByReference, checkExtraArguments and 56 others (see the rule's Replaces section). |
MixedArrayAccessmago-analyzer | analyse/arrays/invalid-destructuring | Merged 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-analyzer | analyse/types/invalid-offset | Merged 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-analyzer | analyse/classes/invalid-method-callable | Merged 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-analyzer | analyse/undefined/assigned-property | Merged with AccessPropertiesInAssignRule, InvalidPropertyAccess, NullPropertyAccess and 5 others (see the rule's Replaces section). |
MixedPropertyTypeCoercionmago-analyzer | analyse/types/property-assign | Merged with TypesAssignedToPropertiesRule, InvalidPropertyAssignmentValue, InvalidPropertyWrite and 3 others (see the rule's Replaces section). |
MixedReturnStatementmago-analyzer | analyse/types/return | Merged with Methods\ReturnTypeRule, FalsableReturnStatement, InvalidReturnStatement and 3 others (see the rule's Replaces section). |
NameAlreadyInUsemago-analyzer | analyse/imports/name-already-in-use | Merged 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-analyzer | analyse/types/argument | Merged with CallToFunctionParametersRule, checkArgumentsPassedByReference, checkExtraArguments and 56 others (see the rule's Replaces section). |
NamedArgumentOverridesPositionalmago-analyzer | analyse/types/argument | Merged 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-analyzer | analyse/types/missing-return | Merged 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-analyzer | analyse/attributes/invalid | Merged 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-analyzer | analyse/attributes/invalid-class-constant-attribute | Merged with ClassConstantAttributesRule, attribute.deprecated, attribute.noConstructor and 3 others (see the rule's Replaces section). |
NonExistentCatchTypemago-analyzer | analyse/types/invalid-pipe | Merged with PipeOperatorRule, NonExistentClass, NonExistentClassLike and 1 others (see the rule's Replaces section). |
NonExistentClassmago-analyzer | analyse/types/invalid-pipe | Merged with PipeOperatorRule, NonExistentCatchType, NonExistentClassLike and 1 others (see the rule's Replaces section). |
NonExistentClassConstantmago-analyzer | analyse/undefined/class-constant | Merged with ClassConstantRule, classConstant.deprecatedClass, classConstant.deprecatedEnum and 14 others (see the rule's Replaces section). |
NonExistentClassLikemago-analyzer | analyse/types/invalid-pipeanalyse/undefined/trait | Merged with PipeOperatorRule, NonExistentCatchType, NonExistentClass and 1 others (see the rule's Replaces section). |
NonExistentConstantmago-analyzer | analyse/undefined/constant | Merged with ConstantRule, constant.notFound. |
NonExistentFunctionmago-analyzer | analyse/undefined/function | Merged with CallToNonExistentFunctionRule, function.notFound. |
NonExistentMethodmago-analyzer | analyse/undefined/method | Merged with CallMethodsRule, checkThisOnly, reportMagicMethods and 3 others (see the rule's Replaces section). |
NonExistentPropertymago-analyzer | analyse/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-analyzer | — | no PHPStan-parity equivalent; Mago analyzer is not a migrate input |
NonIterableObjectIterationmago-analyzer | analyse/types/foreach-non-iterable | Merged 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-analyzer | analyse/types/argument | Merged with CallToFunctionParametersRule, checkArgumentsPassedByReference, checkExtraArguments and 56 others (see the rule's Replaces section). |
NullArrayAccessmago-analyzer | analyse/arrays/invalid-destructuring | Merged with ArrayDestructuringRule, FalseArrayAccess, InvalidArrayAccess and 5 others (see the rule's Replaces section). |
NullArrayIndexmago-analyzer | analyse/types/invalid-offset | Merged 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-analyzer | analyse/types/foreach-non-iterable | Merged 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-analyzer | analyse/undefined/assigned-property | Merged with AccessPropertiesInAssignRule, InvalidPropertyAccess, MixedPropertyAccess and 5 others (see the rule's Replaces section). |
NullableReturnStatementmago-analyzer | analyse/types/return | Merged with Methods\ReturnTypeRule, FalsableReturnStatement, InvalidReturnStatement and 3 others (see the rule's Replaces section). |
OverlyWideReturnTypemago-analyzer | analyse/types/too-wide-arrow-function-return | Merged with TooWideArrowFunctionReturnTypehintRule, paramOut.nestedUnusedType, paramOut.tooWideBool and 9 others (see the rule's Replaces section). |
OverrideFinalConstantmago-analyzer | analyse/classes/invalid-extendsanalyse/classes/incompatible-constant-override | Merged with ExistingClassInClassExtendsRule, ExtendFinalClass, InvalidExtend and 11 others (see the rule's Replaces section). |
OverrideFinalMethodmago-analyzer | analyse/classes/invalid-extends | Merged with ExistingClassInClassExtendsRule, ExtendFinalClass, InvalidExtend and 11 others (see the rule's Replaces section). |
OverrideFinalPropertymago-analyzer | analyse/classes/invalid-extends | Merged 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-analyzer | analyse/undefined/instanceof-class | Merged with ExistingClassInInstanceOfRule, SelfOutsideClassScope, StaticOutsideClassScope and 4 others (see the rule's Replaces section). |
PossibleMethodAccessOnNullmago-analyzer | analyse/classes/invalid-method-callable | Merged 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-analyzer | analyse/types/argument | Merged with CallToFunctionParametersRule, checkArgumentsPassedByReference, checkExtraArguments and 56 others (see the rule's Replaces section). |
PossiblyFalseArrayAccessmago-analyzer | analyse/arrays/invalid-destructuring | Merged with ArrayDestructuringRule, FalseArrayAccess, InvalidArrayAccess and 5 others (see the rule's Replaces section). |
PossiblyFalseArrayIndexmago-analyzer | analyse/types/invalid-offset | Merged with InvalidKeyInArrayDimFetchRule, InvalidArrayIndex, MixedArrayIndex and 3 others (see the rule's Replaces section). |
PossiblyFalseIteratormago-analyzer | analyse/types/foreach-non-iterable | Merged 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-analyzer | analyse/types/argument | Merged with CallToFunctionParametersRule, checkArgumentsPassedByReference, checkExtraArguments and 56 others (see the rule's Replaces section). |
PossiblyInvalidArrayAccessmago-analyzer | analyse/arrays/invalid-destructuring | Merged 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-analyzer | analyse/types/foreach-non-iterable | Merged 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-analyzer | analyse/types/property-assign | Merged with TypesAssignedToPropertiesRule, InvalidPropertyAssignmentValue, InvalidPropertyWrite and 3 others (see the rule's Replaces section). |
PossiblyNonExistentMethodmago-analyzer | analyse/undefined/method | Merged with CallMethodsRule, checkThisOnly, reportMagicMethods and 3 others (see the rule's Replaces section). |
PossiblyNonExistentPropertymago-analyzer | analyse/undefined/property | Merged with AccessPropertiesRule, reportMagicProperties, NonExistentProperty and 1 others (see the rule's Replaces section). |
PossiblyNullArgumentmago-analyzer | analyse/types/argument | Merged with CallToFunctionParametersRule, checkArgumentsPassedByReference, checkExtraArguments and 56 others (see the rule's Replaces section). |
PossiblyNullArrayAccessmago-analyzer | analyse/arrays/invalid-destructuring | Merged with ArrayDestructuringRule, FalseArrayAccess, InvalidArrayAccess and 5 others (see the rule's Replaces section). |
PossiblyNullArrayIndexmago-analyzer | analyse/types/invalid-offset | Merged 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-analyzer | analyse/types/foreach-non-iterable | Merged 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-analyzer | analyse/undefined/assigned-property | Merged 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-analyzer | analyse/undefined/offset | Merged with NonexistentOffsetInArrayDimFetchRule, PossiblyUndefinedIntArrayIndex, PossiblyUndefinedStringArrayIndex and 4 others (see the rule's Replaces section). |
PossiblyUndefinedIntArrayIndexmago-analyzer | analyse/undefined/offset | Merged with NonexistentOffsetInArrayDimFetchRule, PossiblyUndefinedArrayIndex, PossiblyUndefinedStringArrayIndex and 4 others (see the rule's Replaces section). |
PossiblyUndefinedStringArrayIndexmago-analyzer | analyse/undefined/offset | Merged with NonexistentOffsetInArrayDimFetchRule, PossiblyUndefinedArrayIndex, PossiblyUndefinedIntArrayIndex and 4 others (see the rule's Replaces section). |
PossiblyUndefinedVariablemago-analyzer | analyse/undefined/variable | Merged with DefinedVariableRule, checkMaybeUndefinedVariables, ReferenceToUndefinedVariable and 4 others (see the rule's Replaces section). Planned: not ported yet. |
PropertyTypeCoercionmago-analyzer | analyse/types/property-assign | Merged with TypesAssignedToPropertiesRule, InvalidPropertyAssignmentValue, InvalidPropertyWrite and 3 others (see the rule's Replaces section). |
PsalmTracemago-analyzer | analyse/debug/dump-type | Merged with DumpTypeRule, TypeInspection, phpstan.dumpType. |
RedundantCastmago-analyzer | lint/dead-code/no-useless-cast | Merged with RecastingRemoval, UselessCastRule, cast.useless. |
RedundantComparisonmago-analyzer | — | no PHPStan-parity equivalent; Mago analyzer is not a migrate input |
RedundantConditionmago-analyzer | analyse/dead-code/impossible-type-check | Merged 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-analyzer | analyse/statements/invalid-empty | Merged 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-analyzer | analyse/dead-code/impossible-type-check | Merged with ImpossibleCheckTypeFunctionCallRule, ImpossibleCondition, ImpossibleNullTypeComparison and 5 others (see the rule's Replaces section). |
RedundantNullCoalescemago-analyzer | analyse/dead-code/redundant-null-coalesce | Merged with NullCoalesceRule, nullCoalesce.unnecessary. |
RedundantNullsafeOperatormago-analyzer | lint/complexity/no-redundant-nullsafe | Merged with Pun/no_redundant_nullsafe, NullsafeMethodCallRule, NullsafePropertyFetchRule and 2 others (see the rule's Replaces section). |
RedundantTypeComparisonmago-analyzer | analyse/dead-code/impossible-type-check | Merged 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-analyzer | analyse/undefined/variable | Merged with DefinedVariableRule, checkMaybeUndefinedVariables, PossiblyUndefinedVariable and 4 others (see the rule's Replaces section). Planned: not ported yet. |
SelfOutsideClassScopemago-analyzer | analyse/undefined/instanceof-class | Merged 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-analyzer | analyse/undefined/instanceof-class | Merged 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-analyzer | analyse/types/argument | Merged with CallToFunctionParametersRule, checkArgumentsPassedByReference, checkExtraArguments and 56 others (see the rule's Replaces section). |
TooManyArgumentsmago-analyzer | analyse/types/argument | Merged with CallToFunctionParametersRule, checkArgumentsPassedByReference, checkExtraArguments and 56 others (see the rule's Replaces section). |
TooWideThrowTypemago-analyzer | analyse/types/unused-throws-type | Merged with TooWideFunctionThrowTypeRule, throws.unusedType. |
TraitConstantOverridemago-analyzer | — | no PHPStan-parity equivalent; Mago analyzer is not a migrate input |
TraitInstantiationmago-analyzer | analyse/types/invalid-closure-signature | Merged 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-analyzer | analyse/debug/dump-type | Merged 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-analyzer | analyse/undefined/offset | Merged with NonexistentOffsetInArrayDimFetchRule, PossiblyUndefinedArrayIndex, PossiblyUndefinedIntArrayIndex and 4 others (see the rule's Replaces section). |
UndefinedStringArrayIndexmago-analyzer | analyse/undefined/offset | Merged with NonexistentOffsetInArrayDimFetchRule, PossiblyUndefinedArrayIndex, PossiblyUndefinedIntArrayIndex and 4 others (see the rule's Replaces section). |
UndefinedVariablemago-analyzer | analyse/undefined/variable | Merged with DefinedVariableRule, checkMaybeUndefinedVariables, PossiblyUndefinedVariable and 4 others (see the rule's Replaces section). Planned: not ported yet. |
UndefinedVariableInClosureUsemago-analyzer | analyse/undefined/variable | Merged with DefinedVariableRule, checkMaybeUndefinedVariables, PossiblyUndefinedVariable and 4 others (see the rule's Replaces section). Planned: not ported yet. |
UnevaluatedCodemago-analyzer | lint/dead-code/no-unreachable-code | Merged with RemoveUnreachableStatement, UnreachableStatementRule, deadCode.unreachable. |
UnhandledThrownTypemago-analyzer | analyse/types/missing-throws | Merged with MissingCheckedExceptionInFunctionThrowsRule, missingType.checkedException. |
UnimplementedAbstractMethodmago-analyzer | analyse/classes/abstract-method-in-concrete-class | Merged with AbstractMethodInNonAbstractClassRule, method.abstract, method.nonAbstract. |
UnimplementedAbstractPropertyHookmago-analyzer | — | no PHPStan-parity equivalent; Mago analyzer is not a migrate input |
UninitializedPropertymago-analyzer | analyse/classes/uninitialized-property | Merged 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-analyzer | analyse/dead-code/number-comparison-always-constant | Merged with NumberComparisonOperatorsConstantConditionRule, MatchArmAlwaysTrue, UnreachableMatchArm and 38 others (see the rule's Replaces section). |
UnreachableMatchArmmago-analyzer | analyse/dead-code/number-comparison-always-constant | Merged with NumberComparisonOperatorsConstantConditionRule, MatchArmAlwaysTrue, UnreachableElseClause and 38 others (see the rule's Replaces section). |
UnreachableMatchDefaultArmmago-analyzer | analyse/dead-code/number-comparison-always-constant | Merged with NumberComparisonOperatorsConstantConditionRule, MatchArmAlwaysTrue, UnreachableElseClause and 38 others (see the rule's Replaces section). |
UnreachableSwitchCasemago-analyzer | analyse/dead-code/number-comparison-always-constant | Merged with NumberComparisonOperatorsConstantConditionRule, MatchArmAlwaysTrue, UnreachableElseClause and 38 others (see the rule's Replaces section). |
UnreachableSwitchDefaultmago-analyzer | analyse/dead-code/number-comparison-always-constant | Merged 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-analyzer | analyse/classes/unsafe-new-static | Merged with NewStaticRule, new.static. |
UnusedFunctionCallmago-analyzer | lint/dead-code/no-unused-expression | Merged with RemoveDeadStmt, NoopRule, UnusedMethodCall and 8 others (see the rule's Replaces section). |
UnusedMethodmago-analyzer | lint/dead-code/no-unused-private-method | Merged with RemoveUnusedPrivateMethod, UnusedPrivateMethodRule, method.unused. |
UnusedMethodCallmago-analyzer | lint/dead-code/no-unused-expression | Merged 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-analyzer | analyse/dead-code/unused-private-property | Merged with UnusedPrivatePropertyRule, WriteOnlyProperty, property.neverRead and 2 others (see the rule's Replaces section). |
UnusedStatementmago-analyzer | lint/dead-code/no-unused-expression | Merged 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-analyzer | analyse/dead-code/unused-private-property | Merged with UnusedPrivatePropertyRule, UnusedProperty, property.neverRead and 2 others (see the rule's Replaces section). |
YieldFromInvalidKeyTypemago-analyzer | analyse/types/generator | Merged with YieldTypeRule, InvalidGeneratorReturnType, InvalidYieldKeyType and 6 others (see the rule's Replaces section). |
YieldFromInvalidSendTypemago-analyzer | analyse/types/generator | Merged with YieldTypeRule, InvalidGeneratorReturnType, InvalidYieldKeyType and 6 others (see the rule's Replaces section). |
YieldFromInvalidValueTypemago-analyzer | analyse/types/generator | Merged with YieldTypeRule, InvalidGeneratorReturnType, InvalidYieldKeyType and 6 others (see the rule's Replaces section). |
YieldFromNonIterablemago-analyzer | analyse/types/yield-from-non-iterable | Merged with YieldFromTypeRule, generator.nonIterable, generator.sendType. |
YieldOutsideFunctionmago-analyzer | analyse/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.