Skip to content
Esc
↑↓navigate↵open⌘Jpreview

Rules

1,214 rules: 164 format, 680 lint, 370 analyse. 764 have a fix. 23 are Planned and do not run yet. Search all rules.

Topic groups

arrays · 17 rules

Array literals, list() destructuring and array access.

format: 12 · lint: 2 · analyse: 3

attributes · 17 rules

PHP attributes (#[…]).

format: 3 · analyse: 14

casing · 10 rules

The casing of keywords, constants, types and names.

format: 9 · analyse: 1

casts · 6 rules

Type casts.

format: 5 · analyse: 1

classes · 87 rules

Class, interface, trait and enum declarations and their members.

format: 8 · lint: 15 · analyse: 64

comments · 9 rules

Comments other than PHPDoc, including ignore comments.

format: 7 · lint: 1 · analyse: 1

complexity · 56 rules

Code that can be written more simply, and size and complexity limits.

lint: 56

control-flow · 37 rules

if, switch, match, loops, return and the other control structures.

format: 13 · lint: 16 · analyse: 8

dead-code · 97 rules

Code that never runs, or whose result is never used.

lint: 55 · analyse: 42

debug · 5 rules

Type debugging helpers (dumpType, assertType).

analyse: 5

deprecated · 8 rules

Uses of something marked deprecated.

analyse: 8

functions · 38 rules

Function and method declarations, calls, arguments and closures.

format: 8 · lint: 14 · analyse: 16

imports · 15 rules

Namespaces and use imports.

format: 13 · lint: 1 · analyse: 1

operators · 37 rules

Operators and their operands.

format: 15 · lint: 7 · analyse: 15

performance · 4 rules

Faster equivalents of slow constructs.

lint: 4

phpdoc · 71 rules

PHPDoc blocks and tags.

format: 25 · lint: 14 · analyse: 32

refactor · 19 rules

Configurable codemods: they do nothing until configured.

lint: 19

security · 13 rules

Code that can be exploited, or that leaks or hides data.

lint: 13

statements · 24 rules

Statements, declare and semicolons.

format: 15 · lint: 3 · analyse: 6

strings · 16 rules

String literals, heredoc and nowdoc.

format: 9 · lint: 5 · analyse: 2

style · 88 rules

One consistent way to write the same thing.

lint: 88

tags · 6 rules

The PHP open and close tags.

format: 5 · lint: 1

types · 201 rules

Type declarations, type checks and inferred types.

format: 6 · lint: 77 · analyse: 118

undefined · 18 rules

References to something declared nowhere.

analyse: 18

whitespace · 9 rules

Indentation, blank lines, line endings and trailing whitespace.

format: 9

Ecosystem groups

laravel · 113 rules

Laravel (ecosystem: on when composer.lock has laravel/framework).

format: 1 · lint: 97 · analyse: 15

pest · 58 rules

Pest (ecosystem: on when composer.lock has pestphp/pest).

lint: 58

phpunit · 112 rules

PHPUnit (ecosystem: on when composer.lock has phpunit/phpunit).

format: 1 · lint: 111

Upgrade groups

laravel-12 · 1 rules

Upgrade to Laravel 12: code a newer Laravel removes, deprecates or does better.

lint: 1

php-8.1 · 1 rules

Upgrade to PHP 8.1: code a newer PHP removes, deprecates or does better.

lint: 1

php-8.2 · 4 rules

Upgrade to PHP 8.2: code a newer PHP removes, deprecates or does better.

lint: 4

php-8.3 · 6 rules

Upgrade to PHP 8.3: code a newer PHP removes, deprecates or does better.

lint: 6

php-8.4 · 3 rules

Upgrade to PHP 8.4: code a newer PHP removes, deprecates or does better.

lint: 3

php-8.5 · 6 rules

Upgrade to PHP 8.5: code a newer PHP removes, deprecates or does better.

lint: 6

php-8.6 · 2 rules

Upgrade to PHP 8.6: code a newer PHP removes, deprecates or does better.

lint: 2

All rules

Search by Pun ID or upstream name.

1214 of 1,214 rules

Fix: ✓ safe · ! unsafe · ± mixed · — report only. Dim icons do not apply.

IDSummaryEnabled byFix
format/arrays/indentationEach element of an array must be indented exactly once.format-laravel
format/arrays/index-braceArray index should always be written by using square braces.format-laravel
format/arrays/list-syntaxList (array destructuring) assignment should be declared using the configured syntax.format-laravel
format/arrays/no-multiline-double-arrowOperator => should not be surrounded by multi-line whitespaces.format-laravel
format/arrays/no-space-around-offsetThere MUST NOT be spaces around offset braces.format-laravel
format/arrays/no-space-before-commaIn array declaration, there MUST NOT be a whitespace before each comma.format-laravel
format/arrays/no-space-in-emptyEmpty arrays should not contain only whitespace.Opt-in
format/arrays/no-trailing-comma-single-lineIf a list of values separated by a comma is contained on a single line, then the last item MUST NOT have a trailing comma.format-laravel
format/arrays/space-after-commaIn array declaration, there MUST be a whitespace after each comma.format-laravel
format/arrays/syntaxPHP arrays should be declared using the configured syntax.format-laravel
format/arrays/trailing-comma-multilineArguments lists, array destructuring lists, arrays that are multi-line, match-lines and parameters lists must have a trailing comma.format-laravel
format/arrays/trim-spacesArrays should be formatted like function/method arguments, without leading or trailing single line space.format-laravel
format/attributes/empty-parenthesesPHP attributes declared without arguments must (not) be followed by empty parentheses.Opt-in
format/attributes/no-block-spacesRemove spaces before and after the attributes block.Opt-in
format/attributes/orderedSorts attributes using the configured sort algorithm.Opt-in
format/casing/class-referenceWhen referencing an internal class it must be written using the correct casing.Opt-in
format/casing/constantsThe PHP constants true, false, and null MUST be written using the correct casing.format-laravelformat-psr12
format/casing/integer-literalsInteger literals must be in correct case.format-laravel
format/casing/keywordsPHP keywords MUST be in lower case.format-laravelformat-psr12
format/casing/magic-constantsMagic constants should be referred to using the correct casing.format-laravel
format/casing/magic-methodsMagic method definitions and calls must be using the correct casing.format-laravel
format/casing/native-functionsFunction defined by PHP should be called using the correct casing.format-laravel
format/casing/native-typesNative type declarations should be used in the correct case.format-laravel
format/casing/static-referenceClass static references self, static and parent MUST be in lower case.format-laravelformat-psr12
format/casts/lowercaseCast should be written in lower case.format-laravelformat-psr12
format/casts/no-short-boolShort cast bool using double exclamation mark should not be used.format-laravel
format/casts/no-unsetVariables must be set null instead of using (unset) casting.format-laravel
format/casts/short-scalarCast (boolean) and (integer) should be written as (bool) and (int), (double) and (real) as (float), (binary) as (string).format-laravelformat-psr12
format/casts/spacingA single space or none should be between cast and variable.format-laravel
format/classes/definitionWhitespace around the keywords of a class, trait, enum or interfaces definition should be one space.format-laravelformat-psr12
format/classes/member-separationClass, trait and interface elements must be separated with one or none blank line.format-laravel
format/classes/modifier-keywordsClasses, constants, properties, and methods MUST have visibility declared, and keyword modifiers MUST be in the following order: inheritance modifier (abstract or final), visibility modifier (public, protected, or private), set-visibility modifier (public(set), protected(set), or private(set)), scope modifier (static), mutation modifier (readonly), type declaration, name.format-laravelformat-psr12
format/classes/multiline-promoted-propertiesPromoted properties must be on separate lines.Opt-in
format/classes/no-blank-line-after-openingThere should be no empty lines after class opening brace.format-laravelformat-psr12
format/classes/ordered-interfacesOrders the interfaces in an implements or interface extends clause.format-laravel
format/classes/single-member-per-statementThere MUST NOT be more than one property or constant declared per statement.format-laravelformat-psr12
format/classes/single-trait-per-statementEach trait use must be done as single statement.format-psr12
format/comments/align-multilineEach line of multi-line DocComments must have an asterisk [PSR-5] and must be aligned with the first one.Opt-in
format/comments/headerAdd, replace or remove header comment.Opt-in
format/comments/multiline-delimitersDocBlocks must start with two asterisks, multiline comments must start with a single asterisk, after the opening slash. Both must end with a single asterisk before the closing slash.Opt-in
format/comments/no-emptyThere should not be any empty comments.Opt-in
format/comments/no-trailing-whitespaceThere must be no trailing whitespace at the end of lines in comments and PHPDocs.format-laravelformat-psr12
format/comments/single-line-spacingSingle-line comments must have proper spacing.format-laravel
format/comments/single-line-styleSingle-line comments and multi-line comments with only one line of actual content should use the // syntax.format-laravel
format/control-flow/bracesThe body of each control structure MUST be enclosed within braces.format-laravelformat-psr12
format/control-flow/continuation-positionControl structure continuation keyword must be on the configured line.format-laravelformat-psr12
format/control-flow/elseifThe keyword elseif should be used instead of else if so that all control keywords look like single words.format-laravelformat-psr12
format/control-flow/empty-loop-bodyEmpty loop-body must be in configured style.Opt-in
format/control-flow/empty-loop-conditionEmpty loop-condition must be in configured style.Opt-in
format/control-flow/includeInclude/Require and file path should be divided with a single space. File path should not be placed within parentheses.format-laravel
format/control-flow/no-alternative-syntaxReplace control structure alternative syntax to use braces.format-laravel
format/control-flow/no-break-commentThere must be a comment when fall-through is intentional in a non-empty case body.format-psr12
format/control-flow/no-unneeded-bracesRemoves unneeded braces that are superfluous and aren't part of a control structure's body.format-laravel
format/control-flow/no-unneeded-parenthesesRemoves unneeded parentheses around control statements.format-laravel
format/control-flow/switch-case-colonA case should be followed by a colon and not a semicolon.format-laravelformat-psr12
format/control-flow/switch-case-spaceRemoves extra spaces between colon and case value.format-laravelformat-psr12
format/control-flow/yodaWrite conditions in Yoda style (true), non-Yoda style (['equal' => false, 'identical' => false, 'less_and_greater' => false]) or ignore those conditions (null) based on configuration.format-laravel
format/functions/argument-spacingIn method arguments and method call, there MUST NOT be a space before each comma and there MUST be one space after each comma. Argument lists MAY be split across multiple lines, where each subsequent line is indented once. When doing so, the first item in the list MUST be on the next line, and there MUST be only one argument per line.format-laravelformat-psr12
format/functions/backtick-to-shell-execConverts backtick operators to shell_exec calls.Opt-in
format/functions/chain-indentationMethod chaining MUST be properly indented. Method chaining with different levels of indentation is not supported.format-laravel
format/functions/declarationSpaces should be properly placed in a function declaration.format-laravelformat-psr12
format/functions/no-alias-construct-callMaster language constructs shall be used instead of aliases.format-laravel
format/functions/no-space-after-nameWhen making a method or function call, there MUST NOT be a space between the method or function name and the opening parenthesis.format-laravelformat-psr12
format/functions/return-type-spacingAdjust spacing around colon in return type declarations and backed enum types.format-laravelformat-psr12
format/functions/single-line-throwThrowing exception must be done in single line.Opt-in
format/imports/blank-line-afterEach namespace use MUST go on its own line and there MUST be one blank line after the use statements block.format-laravelformat-psr12
format/imports/blank-line-after-namespaceThere MUST be one blank line after the namespace declaration.format-laravelformat-psr12
format/imports/blank-line-between-groupsPutting blank lines between use statement groups.format-laravelformat-psr12
format/imports/blank-lines-before-namespaceControls blank lines before a namespace declaration.format-laravelformat-psr12
format/imports/clean-namespaceNamespace must not contain spacing, comments or PHPDoc.format-laravel
format/imports/fully-qualified-strict-typesRemoves the leading part of fully qualified symbol references if a given symbol is imported or belongs to the current namespace.format-laravel
format/imports/global-namespaceImports or fully qualifies global classes/functions/constants.Opt-in
format/imports/groupThere MUST be group use for the same namespaces.Opt-in
format/imports/no-leading-namespace-whitespaceThe namespace declaration line shouldn't contain leading whitespace.format-laravel
format/imports/no-leading-slashRemove leading slashes in use clauses.format-laravelformat-psr12
format/imports/no-unneeded-aliasImports should not be aliased as the same name.format-laravel
format/imports/orderedOrdering use statements.format-laravelformat-psr12
format/imports/single-per-statementThere MUST be one use keyword per declaration.format-laravelformat-psr12
format/laravel/bladeFormats Blade templates (Pint 1.30, Prettier + prettier-plugin-blade).Opt-in
format/operators/binary-spacingBinary operators should be surrounded by space as configured.format-laravelformat-psr12
format/operators/concat-spacingConcatenation should be spaced according to configuration.format-laravel
format/operators/increment-stylePre- or post-increment and decrement operators should be used if possible.format-laravel
format/operators/linebreakOperators - when multiline - must always be at the beginning or at the end of the line.Opt-in
format/operators/new-expression-parenthesesAll new expressions with a further call must (not) be wrapped in parentheses.Opt-in
format/operators/new-parenthesesAll instances created with new keyword must (not) be followed by parentheses.format-laravelformat-psr12
format/operators/no-space-around-arrowThere should not be space before or after object operators -> and ?->.format-laravel
format/operators/no-space-around-double-colonThere must be no space around double colons (also called Scope Resolution Operator or Paamayim Nekudotayim).format-laravelformat-psr12
format/operators/no-useless-concatThere should not be useless concat operations.Opt-in
format/operators/not-with-spaceLogical NOT operators (!) should have leading and trailing whitespaces.Opt-in
format/operators/not-with-successor-spaceLogical NOT operators (!) should have one trailing whitespace.format-laravel
format/operators/standardize-incrementIncrement and decrement operators should be used if possible.Opt-in
format/operators/standardize-not-equalsReplace all <> with !=.format-laravel
format/operators/ternary-spacingStandardize spaces around ternary operator.format-laravelformat-psr12
format/operators/unary-spacingUnary operators should be placed adjacent to their operands.format-laravelformat-psr12
format/phpdoc/alignAll items of the given PHPDoc tags must be either left-aligned or (by default) aligned vertically.format-laravel
format/phpdoc/annotation-without-dotPHPDoc annotation descriptions should not be a sentence.Opt-in
format/phpdoc/indentDocblocks should have the same indentation as the documented subject.format-laravel
format/phpdoc/inline-tagFixes PHPDoc inline tags.format-laravel
format/phpdoc/line-spanChanges doc blocks from single to multi line, or reversed.Opt-in
format/phpdoc/no-alias-tagNo alias PHPDoc tags should be used.Opt-in
format/phpdoc/no-blank-line-afterThere should not be blank lines between docblock and the documented element.format-laravel
format/phpdoc/no-duplicate-typesRemoves duplicate PHPDoc types.Opt-in
format/phpdoc/no-emptyThere should not be empty PHPDoc blocks.format-laravel
format/phpdoc/orderAnnotations in PHPDoc should be ordered in defined sequence.format-laravel
format/phpdoc/order-by-valueOrder PHPDoc tags by value.Opt-in
format/phpdoc/param-orderOrders all @param annotations in DocBlocks according to method signature.Opt-in
format/phpdoc/return-self-referenceThe type of @return annotations of methods returning a reference to itself must the configured one.Opt-in
format/phpdoc/scalarScalar types should always be written in the same form. int not integer, bool not boolean, float not real or double.format-laravel
format/phpdoc/separationAnnotations in PHPDoc should be grouped together so that annotations of the same type immediately follow each other. Annotations of a different type are separated by a single blank line.format-laravel
format/phpdoc/single-line-var-spacingSingle line @var PHPDoc should have proper spacing.format-laravel
format/phpdoc/summaryPHPDoc summary should end in either a full stop, exclamation mark, or question mark.Opt-in
format/phpdoc/tag-casingFixes casing of PHPDoc tags.Opt-in
format/phpdoc/tag-typeForces PHPDoc tags to be either regular annotations or inline.format-laravel
format/phpdoc/trimPHPDoc should start and end with content, excluding the very first and last line of the docblocks.format-laravel
format/phpdoc/trim-blank-linesRemoves extra blank lines after summary and after description in PHPDoc.Opt-in
format/phpdoc/typesThe correct case must be used for standard PHP types in PHPDoc.format-laravel
format/phpdoc/types-orderSorts PHPDoc types.Opt-in
format/phpdoc/var-order@var and @type annotations must have type and name in the correct order.Opt-in
format/phpdoc/var-without-name@var and @type annotations of classy properties should not contain the name.format-laravel
format/phpunit/fqcn-annotationPHPUnit annotations should be a FQCNs including a root namespace.Opt-in
format/statements/blank-line-beforeAn empty line feed must precede any configured statement.format-laravel
format/statements/braces-positionBraces must be placed as configured.format-laravelformat-psr12
format/statements/declare-equalEqual sign in declare statement should be surrounded by spaces or not following configuration.format-laravelformat-psr12
format/statements/declare-parenthesesThere must not be spaces around declare statement parentheses.format-laravel
format/statements/explicit-indirect-variableAdd curly braces to indirect variables to make them clear to understand.Opt-in
format/statements/multiline-semicolonForbid multi-line whitespace before the closing semicolon or move the semicolon to the new line for chained calls.format-laravel
format/statements/no-mixed-echo-printEither language construct print or echo should be used.format-laravel
format/statements/no-space-before-semicolonSingle-line whitespace before closing semicolon are prohibited.format-laravel
format/statements/numeric-literal-separatorAdds separators to numeric literals of any kind.Opt-in
format/statements/octal-notationLiteral octal must be in 0o notation.Opt-in
format/statements/one-per-lineThere must not be more than one statement per line.format-laravelformat-psr12
format/statements/semicolon-after-instructionInstructions must be terminated with a semicolon.Opt-in
format/statements/single-line-empty-bodyEmpty body of class, interface, trait, enum or function must be abbreviated as {} and placed on the same line as the previous symbol, separated by a single space.format-laravel
format/statements/space-after-semicolonFix whitespace after a semicolon.format-laravel
format/statements/space-around-constructEnsures a single space after language constructs.format-laravelformat-psr12
format/strings/complex-variableConverts explicit variables in double-quoted strings and heredoc syntax from simple to complex format (${ to {$).Opt-in
format/strings/explicit-variableConverts implicit variables into explicit ones in double-quoted strings or heredoc syntax.Opt-in
format/strings/heredoc-closing-markerUnify heredoc or nowdoc closing marker.Opt-in
format/strings/heredoc-indentationHeredoc/nowdoc content must be properly indented.Opt-in
format/strings/heredoc-to-nowdocConvert heredoc to nowdoc where possible.format-laravel
format/strings/implicit-backslashesHandles implicit backslashes in strings and heredocs. Depending on the chosen strategy, it can escape implicit backslashes to ease the understanding of which are special chars interpreted by PHP and which not (escape), or it can remove these additional backslashes if you find them superfluous (unescape). You can also leave them as-is using ignore strategy.Opt-in
format/strings/multiline-to-heredocConvert multiline string to heredoc or nowdoc.Opt-in
format/strings/no-binaryThere should not be a binary flag before strings.format-laravel
format/strings/single-quoteConvert double quotes to single quotes for simple strings.format-laravel
format/tags/blank-line-after-openingEnsure there is no code on the same line as the PHP open tag and it is followed by a blank line.format-laravelformat-psr12
format/tags/echo-syntaxReplaces short-echo <?= with long format <?php echo/<?php print syntax, or vice-versa.Opt-in
format/tags/full-openingPHP code must use the long <?php tags or short-echo <?= tags and not other tag variations.format-laravelformat-psr12
format/tags/linebreak-after-openingEnsure there is no code on the same line as the PHP open tag.format-laravel
format/tags/no-closingThe closing ?> tag MUST be omitted from files containing only PHP.format-laravelformat-psr12
format/types/compact-nullableRemove extra spaces in a nullable type declaration.format-laravelformat-psr12
format/types/declaration-spacingEnsure single space between a variable and its type declaration in function arguments and properties.format-laravel
format/types/nullable-for-null-defaultAdds or removes ? before single type declarations or |null at the end of union types when parameters have a default null value.format-laravel
format/types/nullable-syntaxNullable single type declaration should be standardised using configured syntax.format-laravel
format/types/orderedSort union types and intersection types using configured order.Opt-in
format/types/union-spacingA single space or none should be around union type and intersection type operators.format-laravel
format/whitespace/encodingPHP code MUST use only UTF-8 without BOM (remove BOM).format-laravelformat-psr12
format/whitespace/final-newlineA PHP file without end tag must always end with a single empty line feed.format-laravelformat-psr12
format/whitespace/indentation-typeCode MUST use configured indentation type.format-laravelformat-psr12
format/whitespace/inside-parenthesesParentheses must be declared using the configured whitespace.format-laravelformat-psr12
format/whitespace/line-endingAll PHP files must use same line ending.format-laravelformat-psr12
format/whitespace/no-blank-line-whitespaceRemove trailing whitespace at the end of blank lines.format-laravelformat-psr12
format/whitespace/no-extra-blank-linesRemoves extra blank lines and/or blank lines following configuration.format-laravelformat-psr12
format/whitespace/no-trailingThere must be no trailing whitespace at the end of non-blank lines.format-laravelformat-psr12
format/whitespace/statement-indentationEach statement must be indented.format-laravelformat-psr12
lint/arrays/no-implicit-array-creationDisallows implicit array creation: appending to or writing an offset of an undefined or null variable.code-quality
lint/arrays/prefer-array-spreadDetects calls to array_merge() and suggests using the array spread operator (...) in an array literal instead.modernize
lint/classes/add-stringableA class that implements the __toString() method must explicitly implement the Stringable interface.modernize
lint/classes/no-explicit-constructor-callDisallows calling __construct() on an existing object outside a constructor.code-quality
lint/classes/no-null-property-defaultProperties MUST not be explicitly initialised with null except when they have a type declaration (PHP 7.4).dead-code
lint/classes/no-protected-constant-in-finalChange protected constant to private if possibleprivatization
lint/classes/no-protected-in-finalConverts protected variables and methods to private where possible.privatization
lint/classes/no-protected-method-in-finalChange protected class method to private if possibleprivatization
lint/classes/no-protected-property-in-finalChange property to private if possibleprivatization
lint/classes/no-redundant-readonlyRemoves redundant readonly from properties in readonly classes.dead-code
lint/classes/no-static-constructor-callDisallows calling a constructor statically (Foo::__construct()) outside a child class's constructor.code-quality
lint/classes/no-underscore-classDetects class, interface, trait, or enum declarations named _.modernize
lint/classes/no-unset-on-propertyProperties should be set to null instead of using unset.code-quality
lint/classes/prefer-new-selfChange new static() to new self() in a final classcode-quality
lint/classes/prefer-self-in-finalInside an enum or final/anonymous class, self should be preferred over static.modernizecode-quality
lint/classes/require-class-matches-fileClasses must be in a path that matches their namespace, be at least one namespace deep and the class name should match the file name.code-quality
lint/classes/require-member-orderOrders the elements of classes/interfaces/traits/enums.coding-style
lint/comments/no-unused-ignoreA @pun-ignore comment that suppressed nothing. Fix removes it.code-quality
lint/complexity/no-and-assignmentSplit 2 assigns with "and" to separate linescode-quality
lint/complexity/no-boolean-flag-parameterFlags function-like parameters that use a boolean type and drive the function's behaviour.Opt-in
lint/complexity/no-compactChange compact() call to own arraycode-quality
lint/complexity/no-concat-assign-new-itemChange concat assign on a new array item to plain assign, as the new item is always nullcode-quality
lint/complexity/no-constant-conditionDetects if statements where the condition is a constant that alwaysdead-code
lint/complexity/no-constant-via-variableChange variable class constant fetch to direct class constant fetch when class or constant target is finalcode-quality
lint/complexity/no-dirname-dir-concatChange dirname() and string concat, to __DIR__ and direct string pathcode-quality
lint/complexity/no-duplicate-match-armDetects match arms that produce the same result as an earlier arm.code-quality
lint/complexity/no-else-clauseFlags if statements that include an else or elseif branch.Opt-in
lint/complexity/no-empty-fileDetects redundant files that contain no executable code or declarations.Opt-in
lint/complexity/no-excessive-cyclomaticChecks the cyclomatic complexity of classes, traits, enums, interfaces, functions, and closures.Opt-in
lint/complexity/no-excessive-enum-casesDetects enums with too many cases.Opt-in
lint/complexity/no-excessive-halsteadComputes Halstead metrics (volume, difficulty, effort) and reports if they exceed configured thresholds.Opt-in
lint/complexity/no-excessive-kan-defectDetects classes, traits, interfaces, functions, and closures with high kan defect.Opt-in
lint/complexity/no-excessive-methodsDetects class-like structures with too many methods.Opt-in
lint/complexity/no-excessive-nestingChecks if the nesting level in any block exceeds a configurable threshold.Opt-in
lint/complexity/no-excessive-parametersDetects functions, closures, and methods with too many parameters.Opt-in
lint/complexity/no-excessive-propertiesDetects class-like structures with too many properties.Opt-in
lint/complexity/no-gotoDetects the use of goto statements and labels.Opt-in
lint/complexity/no-iterator-to-array-in-foreachDetects iterator_to_array() calls used directly as a foreach expression.code-quality
lint/complexity/no-negated-boolean-literalReplace negated boolean literals (!false, !true) with their simplified equivalents (true, false)code-quality
lint/complexity/no-negated-groupSimplify negated conditions with de Morgan theoremcode-quality
lint/complexity/no-negated-instanceof-ternaryFlip negated ternary of instanceof to direct use of objectcode-quality
lint/complexity/no-phpdoc-class-case-mismatchFix a misspelled class name casing in a @var docblock to match the real class namecode-quality
lint/complexity/no-redundant-issetDetects redundant arguments in isset() calls where a nested access already implies the parent checks.code-quality
lint/complexity/no-redundant-literal-returnDetects redundant literal guard patterns where an if statement checks if a variable equals a literal and returns that same literal, followed by returning the variable.code-quality
lint/complexity/no-redundant-null-checkReturn the value directly instead of checking it for null first.code-quality
lint/complexity/no-redundant-nullsafeFlags the use of the nullsafe operator (?->) in contexts where its null-checking behavior is redundant.code-quality
lint/complexity/no-redundant-write-visibilityDetects redundant write visibility modifiers on properties.code-quality
lint/complexity/no-single-case-switchChange switch with only 1 check to ifcode-quality
lint/complexity/no-single-item-in-arrayChanges in_array() with single element to ===code-quality
lint/complexity/no-sole-value-sprintfRemove sprintf() wrapper if not neededcode-quality
lint/complexity/no-unused-labelDetects redundant goto labels that are declared but not used.code-quality
lint/complexity/no-useless-array-valuesRemoves unneeded array_values() in in_array() callcode-quality
lint/complexity/prefer-absolute-includeMigrate include/require to absolute path. This Rector might introduce backwards incompatible code, when the include/require being changed depends on the current working directory.code-quality
lint/complexity/prefer-array-literalChange array_merge of non arrays to array directlycode-quality
lint/complexity/prefer-coalesce-over-empty-ternaryChange ternary empty on array property with array dim fetch to coalesce operatorcode-quality
lint/complexity/prefer-empty-array-compareCompare with [] instead of empty()/is_array() on arrays.code-quality
lint/complexity/prefer-explicit-array-comparisonMake array if conditions more explicitcode-quality
lint/complexity/prefer-func-num-argsSimplify count of func_get_args() to func_num_args()code-quality
lint/complexity/prefer-if-statementChange inline if to explicit ifcode-quality
lint/complexity/prefer-in-arrayUse in_array() instead of repeated ||/&& comparisons, array_search() checks and foreach loops.code-quality
lint/complexity/prefer-inline-array-returnInline just in time array dim fetch assigns to direct returncode-quality
lint/complexity/prefer-instance-methodChange static method and local-only calls to non-staticcode-quality
lint/complexity/prefer-min-maxChange ternary number compare to max() callcode-quality
lint/complexity/prefer-named-literal-argumentName literal arguments (true, false, null, numbers) in calls.Opt-in
lint/complexity/prefer-not-in-arrayUse ! in_array() instead of repeated !==/!= comparisons of one value joined by &&.code-quality
lint/complexity/prefer-null-coalesceUse ?? instead of isset()/array_key_exists() ternaries, if/return chains and foreach lookups.code-quality
lint/complexity/prefer-property-defaultMove property default from constructor to property defaultcode-quality
lint/complexity/prefer-property-existsUse property_exists() instead of array_key_exists() or isset() on object properties.code-quality
lint/complexity/prefer-simple-conditionSimplify a negated comparison or a comparison with a booleancode-qualitydead-code
lint/complexity/require-attribute-argument-orderSort named arguments in PHP 8 attributes to match their declaration ordercode-quality
lint/complexity/require-consistent-returnAdd explicit return null to method/function that returns a value, but missed main returncode-quality
lint/complexity/require-is-a-allow-stringComplete missing 3rd argument in case is_a() function in case of stringscode-quality
lint/complexity/require-named-argument-orderOrder named arguments as the parameters are declared.code-quality
lint/complexity/require-previous-exceptionWhen throwing into a catch block, checks that the previous exception is passed to the new throw clausecode-quality
lint/control-flow/no-assign-in-conditionDetects assignments in conditions which can lead to unexpected behavior and make the code hardercode-quality
lint/control-flow/no-else-after-returnDrop the else after a branch that always returns, throws or exits, and move its body after the if.code-quality
lint/control-flow/no-empty-catchReport an empty catch block, which swallows the exception.code-quality
lint/control-flow/no-for-init-overwriteDisallows a for loop's init expression overwriting a variable that is already defined.code-quality
lint/control-flow/no-loop-variable-overwriteDisallows a foreach key or value variable overwriting a variable that is already defined.code-quality
lint/control-flow/no-return-assignmentLocal, dynamic and directly referenced variables should not be assigned and directly returned by a function or method.dead-code
lint/control-flow/no-superfluous-elseifReplaces superfluous elseif with if.dead-code
lint/control-flow/no-switch-continueSwitch case must not be ended with continue but with break.modernize
lint/control-flow/no-unsafe-finallyDetects control flow statements in finally blocks.code-quality
lint/control-flow/no-useless-elseThere should not be useless else cases.early-return
lint/control-flow/no-useless-returnThere should not be an empty return statement at the end of a function.dead-code
lint/control-flow/prefer-bare-returnA return statement wishing to return void should not return null.Opt-in
lint/control-flow/prefer-bool-returnSimplify if control structures that return the boolean result of their condition.code-quality
lint/control-flow/prefer-combined-issetUsing isset($var) && multiple times should be done in one call.code-quality
lint/control-flow/prefer-combined-unsetCalling unset on multiple items should be done in one call.code-quality
lint/control-flow/prefer-yield-fromIf the function explicitly returns an array, and has the return type iterable, then yield from must be used instead of return.code-quality
lint/dead-code/no-always-false-conditionReduce always false in a if (a || b) conditiondead-code
lint/dead-code/no-always-true-ifRemove if condition that is always truedead-code
lint/dead-code/no-always-true-instanceofRemove instanceof checks and assert(instanceof) calls that are always true for the known type.dead-code
lint/dead-code/no-and-trueRemove and true that has no added valuedead-code
lint/dead-code/no-cast-in-concatRemove (string) casting when it comes to concat, that does this by defaultdead-code
lint/dead-code/no-condition-exact-returnRemove an if that returns the value it compares when the next statement returns the compared expression.dead-code
lint/dead-code/no-dead-catchRemove dead catchesdead-code
lint/dead-code/no-dead-php-version-checkRemove PHP_VERSION_ID / version_compare() checks that are always true for the configured PHP version.dead-code
lint/dead-code/no-double-self-assignmentRemove duplicated self assign of the same variabledead-code
lint/dead-code/no-duplicate-array-keyRemove duplicated key in defined arraysdead-code
lint/dead-code/no-duplicate-case-body2 following switch keys with identical will be reduced to one resultdead-code
lint/dead-code/no-empty-blockRemove or report if/for/foreach/while statements with an empty body.dead-code
lint/dead-code/no-empty-methodRemove empty class methods not required by parentsdead-code
lint/dead-code/no-false-ternaryChange ternary of bool : false to && booldead-code
lint/dead-code/no-future-php-version-checkUnwrap if checks on a PHP version that the configured PHP version always meets.dead-code
lint/dead-code/no-identical-branchesRemove if/else if they have same contentdead-code
lint/dead-code/no-implode-ternaryDrop an empty-array ternary around implode()code-quality
lint/dead-code/no-invalid-return-tagRemove @return docblock that contradicts the declared native return typedead-code
lint/dead-code/no-invalid-var-tagRemoves non-existing @var annotations above the codedead-code
lint/dead-code/no-null-tag-valueRemove @var/@param/@return null docblockdead-code
lint/dead-code/no-overridden-assign-before-ifRemove assign before if/else that overrides the variable in both branchesdead-code
lint/dead-code/no-parent-call-without-parentRemove unused parent call with no parent classdead-code
lint/dead-code/no-redundant-conditionMerge an if into the if before it when both check the same condition.dead-code
lint/dead-code/no-redundant-default-argumentRemove arguments that equal the parameter default value.dead-code
lint/dead-code/no-redundant-foreach-guardRemove unused if check to non-empty array before foreach of the arraydead-code
lint/dead-code/no-redundant-promoted-assignRemove useless re-assign from property promotiondead-code
lint/dead-code/no-redundant-property-defaultRemove redundant default value from property that is always assigned in the constructordead-code
lint/dead-code/no-redundant-type-checkRemove is_<type>() check that can never fail on already known typedead-code
lint/dead-code/no-return-in-constructorRemove useless return Expr in __construct()dead-code
lint/dead-code/no-self-assignmentDetects and removes self-assignments where a variable or property is assigned to itself.dead-code
lint/dead-code/no-typed-property-instanceofRemove dead instanceof check on type hinted propertydead-code
lint/dead-code/no-unreachable-codeRemove unreachable statementsdead-code
lint/dead-code/no-unused-assignmentRemove assignments whose value is never read, including stores overwritten before use.dead-code
lint/dead-code/no-unused-constructor-paramRemove unused parameter in constructordead-code
lint/dead-code/no-unused-expressionRemove dead code statementsdead-code
lint/dead-code/no-unused-foreach-keyRemove unused key in foreachdead-code
lint/dead-code/no-unused-globalFlags global $x; declarations whose name is never read or writtencode-quality
lint/dead-code/no-unused-private-constantRemove unused class constantsdead-code
lint/dead-code/no-unused-private-methodRemove unused private methoddead-code
lint/dead-code/no-unused-private-method-paramRemove unused parameters of private methods, including test-method parameters overwritten before use.dead-code
lint/dead-code/no-unused-private-propertyRemove unused private propertiesdead-code
lint/dead-code/no-unused-promoted-propertyRemove unused promoted propertydead-code
lint/dead-code/no-unused-public-method-paramRemove unused parameter in public method on final class without extends and interfacedead-code
lint/dead-code/no-unused-return-typeNarrow overly wide union return type declaration if possibledead-code
lint/dead-code/no-unused-return-valueDetects private methods whose return value is thrown away at every call site.dead-code
lint/dead-code/no-unused-staticFlags static $x; declarations whose name is never read or writtencode-quality
lint/dead-code/no-useless-castRemove casts to the type the value already has, including (string) inside concatenation.dead-code
lint/dead-code/no-useless-catchRemove dead try/catchdead-code
lint/dead-code/no-useless-conditionRemove if conditions whose branches return the same value.dead-code
lint/dead-code/no-useless-continueRemove continue as the last statement of a loop.dead-code
lint/dead-code/no-useless-filter-varRemoves filter_var() calls with exact typedead-code
lint/dead-code/no-useless-mathRemove arithmetic that does not change the value (+ 0, * 1, ...).dead-code
lint/dead-code/no-useless-overrideRemove methods and constructors that only call the parent with the same arguments.dead-code
lint/dead-code/no-useless-phpdoc-typeRemove PHPDoc types that add nothing over the native type (@var null, unions wider than the native return type).dead-code
lint/dead-code/no-useless-ternarySimplify ternaries whose result does not depend on the condition, or that equal a boolean expression.dead-codecode-quality
lint/functions/no-assign-in-argumentDetects assignments in function call arguments which can lead to unexpected behavior and makecode-quality
lint/functions/no-call-user-func-methodRefactor call_user_func() on known class method to a method callcoding-style
lint/functions/no-extra-argumentsRemove extra parameterscode-quality
lint/functions/no-missing-format-argumentDetects sprintf-style format calls where the number of placeholderscode-quality
lint/functions/no-required-after-optionalReport or fix optional parameters declared before required ones.code-quality
lint/functions/no-swapped-explode-argumentsDetects explode calls whose arguments appear to be swapped.code-quality
lint/functions/no-unreachable-default-argument-valueIn function arguments there must not be arguments with default values before non-default ones.code-quality
lint/functions/no-unused-closure-useLambda must not import variables it doesn't use.dead-code
lint/functions/no-void-reference-returnDetects functions, methods, closures, arrow functions, and set property hooks that return by reference from a void function.modernize
lint/functions/require-array-filter-callbackRequires a callback for array_filter(): without one it drops every falsy value, not only null.code-quality
lint/functions/require-assert-descriptionDetects assert functions that do not have a description.Opt-in
lint/functions/require-strict-array-searchMakes array_search search for identical elementscoding-style
lint/functions/require-strict-function-callRequires the strict flag of in_array(), array_search(), array_keys() with a search value and base64_decode().coding-style
lint/functions/require-strict-in-arraySet in_array strict to true when defined on similar typecoding-style
lint/imports/no-unusedUnused use statements must be removed.dead-code
lint/laravel-12/prefer-scope-attributeChanges model scope methods to use the scope attributeOpt-in
lint/laravel/add-factory-extends-phpdocAdds the @extends annotation to Factories.Opt-in
lint/laravel/add-has-factory-traitAdds the HasFactory trait to Models.Opt-in
lint/laravel/add-legacy-relation-genericsPlannedAdd generic return type to relations in child of Illuminate\Database\Eloquent\Modeltypes
lint/laravel/add-new-relation-genericsPlannedAdd generic return type to relations in child of Illuminate\Database\Eloquent\Modeltypes
lint/laravel/add-query-closure-typeType-hint the closure parameter of Eloquent where()/whereHas() and similar query methods.types
lint/laravel/add-relation-genericsAdd generic return type to relations in child of Illuminate\Database\Eloquent\Modeltypes
lint/laravel/add-relation-query-closure-typeAdd type hinting to where relation has methods e.g. whereHas, orWhereHas, whereDoesntHave, orWhereDoesntHave, whereHasMorph, orWhereHasMorph, whereDoesntHaveMorph, orWhereDoesntHaveMorphtypes
lint/laravel/add-scope-builder-genericsPlannedAdd generic Builder return type to scopes in child of Illuminate\Database\Eloquent\Modeltypes
lint/laravel/add-tap-closure-typeAutomatically type hints your tappable closurestypes
lint/laravel/no-app-array-accessReplace magical call on $this->app["something"] to standalone type assign variablecode-quality
lint/laravel/no-collection-aliasesUse the base collection methods instead of their aliases.code-quality
lint/laravel/no-controller-middlewareThis rule warns against applying middlewares in controllers.Opt-in
lint/laravel/no-default-authorizePlannedRemove the authorize() method from FormRequest classes when it only returns true, as passesAuthorization() defaults to true when the method does not existcode-quality
lint/laravel/no-implicit-model-queryStart Eloquent queries with Model::query() instead of static magic calls.code-quality
lint/laravel/no-negated-blank-filledSwap the use of NotBooleans used with filled() and blank() to the correct helper.code-quality
lint/laravel/no-negated-containsConvert negated calls to contains to doesntContain, or vice versa.code-quality
lint/laravel/no-negated-filterAvoid negated conditionals in filter() by using reject(), or vice versa.code-quality
lint/laravel/no-negated-whenReverse conditionable method callscode-quality
lint/laravel/no-request-allDetects the use of $request->all() or Request::all() in Laravel applications.code-quality
lint/laravel/no-useless-value-callRemoves redundant value helper callscode-quality
lint/laravel/no-useless-with-callRemoves redundant with helper callscode-quality
lint/laravel/prefer-abort-ifChange if abort to abort_ifOpt-in
lint/laravel/prefer-aliases-attributeChanges the aliases property to use the Aliases attributeOpt-in
lint/laravel/prefer-anonymous-migrationPrefer using anonymous classes for Laravel migrations instead of named classes.code-quality
lint/laravel/prefer-appends-attributeChanges model appends property to use the appends attributeOpt-in
lint/laravel/prefer-array-validation-rulesUse array syntax for validation rules instead of 'a|b' strings.code-quality
lint/laravel/prefer-back-helperReplace redirect()->back() and Redirect::back() with back()code-quality
lint/laravel/prefer-backoff-attributeChanges the backoff property to use the Backoff attributeOpt-in
lint/laravel/prefer-casts-methodDetects the $casts property on an Eloquent model. Laravel 11 introduced the casts()coding-style
lint/laravel/prefer-class-container-keyChanges the string or class const used for a service container make callOpt-in
lint/laravel/prefer-closure-only-bindDrop the specified abstract class from the bind method and replace it with a closure that returns the abstract class.Opt-in
lint/laravel/prefer-collected-by-attributeChanges model newCollection method to use the CollectedBy attributeOpt-in
lint/laravel/prefer-collection-allConvert toArray() to all() when the collection does not contain any Arrayable objects.code-quality
lint/laravel/prefer-collection-is-emptyPlannedConvert collection count() comparisons against 0 or 1 to isEmpty() or isNotEmpty()code-quality
lint/laravel/prefer-collects-attributeChanges the collects property to use the Collects attributeOpt-in
lint/laravel/prefer-command-hidden-attributeChanges the hidden property to use the Hidden attribute on console commandsOpt-in
lint/laravel/prefer-connection-attributeChanges model connection property to use the Connection attributeOpt-in
lint/laravel/prefer-constructor-injectionMove help facade-like function calls to constructor injectionOpt-in
lint/laravel/prefer-container-method-callPlannedChange array access on the container to the matching method call, as the contract does not extend ArrayAccessOpt-in
lint/laravel/prefer-date-facadeRefactor Carbon static method calls to use the Date facade instead.code-quality
lint/laravel/prefer-date-format-attributeChanges model dateFormat property to use the DateFormat attributeOpt-in
lint/laravel/prefer-dedicated-status-assertionUse assertOk(), assertNotFound() and similar instead of assertStatus(200).code-quality
lint/laravel/prefer-default-argumentApply default instead of null coalescecode-quality
lint/laravel/prefer-delay-attributeChanges the delay property to use the Delay attributeOpt-in
lint/laravel/prefer-delete-when-missing-models-attributeChanges the deleteWhenMissingModels property to use the DeleteWhenMissingModels attributeOpt-in
lint/laravel/prefer-description-attributeChanges the description property to use the Description attributeOpt-in
lint/laravel/prefer-dispatch-helperUse the event or dispatch helpers instead of the static dispatch method.code-quality
lint/laravel/prefer-env-helperChange env variable to env static callcode-quality
lint/laravel/prefer-environment-checkReplace app environment comparison with parameter or method callcode-quality
lint/laravel/prefer-error-bag-attributeChanges the errorBag property to use the ErrorBag attributeOpt-in
lint/laravel/prefer-exception-class-stringchanges use of a new throw instance to class stringcode-quality
lint/laravel/prefer-explicit-json-callChange method calls from $this->json to $this->postJson, $this->putJson, etc.code-quality
lint/laravel/prefer-facade-over-appChange app() func calls to facade callsOpt-in
lint/laravel/prefer-fail-on-timeout-attributeChanges the failOnTimeout property to use the FailOnTimeout attributeOpt-in
lint/laravel/prefer-fake-helperUse the fake() helper instead of $this->faker.code-quality
lint/laravel/prefer-file-facade-deletePlannedUse the File facade instead of the unlink() function.code-quality
lint/laravel/prefer-fillable-attributeChanges model fillable property to use the fillable attributeOpt-in
lint/laravel/prefer-guarded-attributeChanges model guarded property to use the guarded attributeOpt-in
lint/laravel/prefer-help-attributeChanges the help property to use the Help attributeOpt-in
lint/laravel/prefer-hidden-attributeChanges model hidden property to use the hidden attributeOpt-in
lint/laravel/prefer-job-connection-attributeChanges the connection property to use the Connection attribute on queue jobsOpt-in
lint/laravel/prefer-latest-oldestChanges orderBy() to latest() or oldest()code-quality
lint/laravel/prefer-max-exceptions-attributeChanges the maxExceptions property to use the MaxExceptions attributeOpt-in
lint/laravel/prefer-nullsafeConvert simple calls to optional helper to use the nullsafe operatorcode-quality
lint/laravel/prefer-pivot-classPlannedChanges the pivot table name of a many to many relation to the pivot model class.code-quality
lint/laravel/prefer-preserve-keys-attributeChanges the preserveKeys property to use the PreserveKeys attributeOpt-in
lint/laravel/prefer-protected-model-methodsMakes Model attributes and scopes protectedcode-quality
lint/laravel/prefer-queue-attributeChanges the queue property to use the Queue attributeOpt-in
lint/laravel/prefer-report-ifChange if report to report_ifOpt-in
lint/laravel/prefer-repository-method-callPlannedChange array access on a config or cache repository to the matching method call, as the contracts do not extend ArrayAccessOpt-in
lint/laravel/prefer-request-facadeUse the Request facade instead of $_GET, $_POST and $_SERVER.code-quality
lint/laravel/prefer-request-serverChange server variable to Request facade's server methodcode-quality
lint/laravel/prefer-request-validateChange Request::validate() and request() to an injected $request. Adds a Request $request parameter to the method, so update its callers.Opt-in
lint/laravel/prefer-resolve-helperConvert app() to resolve() where applicable.code-quality
lint/laravel/prefer-route-key-attributePlannedChanges model getRouteKeyName() method to use the RouteKey attributeOpt-in
lint/laravel/prefer-session-facadeChange PHP session usage to Session Facade methodscode-quality
lint/laravel/prefer-signature-attributeChanges the signature property to use the Signature attributeOpt-in
lint/laravel/prefer-sleep-facadeUse Sleep::sleep() and Sleep::usleep() instead of the sleep() and usleep() function.code-quality
lint/laravel/prefer-stop-on-first-failure-attributeChanges the stopOnFirstFailure property to use the StopOnFirstFailure attributeOpt-in
lint/laravel/prefer-str-starts-withUse Str::startsWith() or Str::endsWith() instead of substr() === $strcode-quality
lint/laravel/prefer-table-attributeChanges model table-related properties to use the Table attributeOpt-in
lint/laravel/prefer-throw-ifChange if throw to throw_ifOpt-in
lint/laravel/prefer-timeout-attributeChanges the timeout property to use the Timeout attributeOpt-in
lint/laravel/prefer-to-route-helperReplace redirect()->route("home") and Redirect::route("home") with to_route("home")code-quality
lint/laravel/prefer-todayUse today() instead of now()->startOfDay()code-quality
lint/laravel/prefer-touches-attributeChanges model touches property to use the touches attributeOpt-in
lint/laravel/prefer-travel-toUse the $this->travelTo() method in Laravel's TestCase class instead of the Carbon::setTestNow() method.code-quality
lint/laravel/prefer-tries-attributeChanges the tries property to use the Tries attributeOpt-in
lint/laravel/prefer-typed-assert-closureChanges assert calls to use a type hinted closure.code-quality
lint/laravel/prefer-unguarded-attributePlannedChanges model empty guarded property to use the Unguarded attributeOpt-in
lint/laravel/prefer-unique-for-attributeChanges the uniqueFor property to use the UniqueFor attributeOpt-in
lint/laravel/prefer-view-arrayPrefer passing data to views using the array parameter in the view() function,Opt-in
lint/laravel/prefer-visible-attributeChanges model visible property to use the Visible attributeOpt-in
lint/laravel/prefer-without-incrementing-attributeChanges model incrementing = false property to use the WithoutIncrementing attributeOpt-in
lint/laravel/prefer-without-timestamps-attributeChanges model timestamps = false property to use the WithoutTimestamps attributeOpt-in
lint/laravel/require-final-controllerEnforces that controller classes are declared as final.Opt-in
lint/laravel/require-phpdoc-types-onlyKeeps only type annotations in PHPDoc.Opt-in
lint/operators/no-and-or-keywordsUse && and || logical operators instead of and and or.code-quality
lint/operators/no-error-suppressionError control operator should be added to deprecation notices and/or removed from other cases.code-quality
lint/operators/no-loose-equalityDisallows the loose comparison operators == and !=; use === and !==.code-quality
lint/operators/no-useless-nullsafeThere should not be useless Null-safe operator ?-> used.dead-code
lint/operators/prefer-coalesceUse null coalescing operator ?? where possible.modernize
lint/operators/prefer-coalesce-assignUse the null coalescing assignment operator ??= where possible.modernize
lint/operators/prefer-coalesce-assign-over-fallbackSuggests the null coalescing assignment operator (??=) when the right operand of ?? assigns to the same variable or property as its left operand.modernize
lint/performance/prefer-explode-over-preg-splitDetects calls to preg_split() whose pattern has no regex meta-characters and no modifiers, which means the split could be done with explode().code-quality
lint/performance/prefer-static-closureLambdas not (indirectly) referencing $this must be declared static.Opt-in
lint/performance/require-qualified-native-constantAdd leading \ before constant invocation of internal constant to speed up resolving. Constant name match is case-sensitive, except for null, false and true.Opt-in
lint/performance/require-qualified-native-functionAdd leading \ before function invocation to speed up resolving.Opt-in
lint/pest/no-before-all-in-describeReplaces invalid beforeAll() and afterAll() hooks inside describe() with beforeEach() and afterEach()coding-style
lint/pest/no-invalid-repeatNormalizes invalid literal repeat() counts to 1coding-style
lint/pest/no-negated-boolean-matcherSimplifies double-negative expectations like ->not->toBeFalse() to ->toBeTrue()coding-style
lint/pest/no-onlyRemove ->only() from Pest tests.coding-style
lint/pest/no-redundant-type-expectationRemoves redundant literal type expectations when a later matcher keeps the chain meaningfulcoding-style
lint/pest/no-redundant-usesRemoves redundant local Pest uses already configured globally in tests/Pest.phpcoding-style
lint/pest/no-static-test-closureRemoves static from Pest test and hook callbacks that use the test case instancecoding-style
lint/pest/prefer-chained-expectChains consecutive expect() calls into a single chained expectation, combining calls on the same value and joining different values with ->and() (configurable)coding-style
lint/pest/prefer-dedicated-expectationUse dedicated Pest matchers (toBeArray(), toStartWith(), toHaveCount(), ...) instead of expect(fn(...))->toBeTrue().coding-style
lint/pest/prefer-deferReplaces deprecated ->tap() method with ->defer() for Pest v3 migrationcoding-style
lint/pest/prefer-each-modifierConverts foreach loops with expect() calls to use the ->each modifiercoding-style
lint/pest/prefer-expectConverts $this->assert*() calls to Pest expect() chainscoding-style
lint/pest/prefer-extendConverts uses() and pest()->uses() to pest()->extend() for classes and pest()->use() for traitscoding-style
lint/pest/prefer-filesystem-matchersSimplifies combined filesystem checks to single Pest matcherscoding-style
lint/pest/prefer-not-modifierSimplifies negated expectations by flipping the matcher (e.g., expect(!$x)->toBeTrue() becomes expect($x)->toBeFalse())coding-style
lint/pest/prefer-sequenceConverts consecutive indexed expect() calls to sequence()coding-style
lint/pest/prefer-simpler-expectationSimplify Pest expectations: expect($a > $b)->toBeTrue() becomes expect($a)->toBeGreaterThan($b), and similar.coding-style
lint/pest/prefer-specific-expectationsUse toBeTrue()/toBeFalse()/toBeNull() instead of toBe(true|false|null).coding-style
lint/pest/prefer-strict-equality-matchersConverts strict equality expressions to toBe() matchercoding-style
lint/pest/prefer-to-be-alphaConverts ctype_alpha() checks to toBeAlpha() matchercoding-style
lint/pest/prefer-to-be-alpha-numericConverts ctype_alnum() checks to toBeAlphaNumeric() matchercoding-style
lint/pest/prefer-to-be-betweenConverts expect($value >= $min && $value <= $max)->toBeTrue() to expect($value)->toBeBetween($min, $max)coding-style
lint/pest/prefer-to-be-digitsConverts ctype_digit() checks to toBeDigits() matchercoding-style
lint/pest/prefer-to-be-directoryConverts is_dir() checks to toBeDirectory() matchercoding-style
lint/pest/prefer-to-be-emptyConverts empty checks and count-zero comparisons to toBeEmpty() matchercoding-style
lint/pest/prefer-to-be-fileConverts is_file() checks to toBeFile() matchercoding-style
lint/pest/prefer-to-be-inConverts strict in_array() checks to the toBeIn() matchercoding-style
lint/pest/prefer-to-be-infiniteConverts is_infinite() checks to toBeInfinite() matchercoding-style
lint/pest/prefer-to-be-instance-ofConverts expect($obj instanceof User)->toBeTrue() to expect($obj)->toBeInstanceOf(User::class)coding-style
lint/pest/prefer-to-be-jsonConverts json_decode() null checks to toBeJson() matchercoding-style
lint/pest/prefer-to-be-listConverts array_is_list() checks to toBeList() matchercoding-style
lint/pest/prefer-to-be-lowercaseConverts strtolower() equality checks to toBeLowercase() matchercoding-style
lint/pest/prefer-to-be-nanConverts is_nan() checks to toBeNan() matchercoding-style
lint/pest/prefer-to-be-truthy-falsyConverts bool cast assertions to toBeTruthy()/toBeFalsy() matcherscoding-style
lint/pest/prefer-to-be-uppercaseConverts strtoupper() equality checks to toBeUppercase() matchercoding-style
lint/pest/prefer-to-be-urlConverts filter_var($url, FILTER_VALIDATE_URL) checks to toBeUrl() matchercoding-style
lint/pest/prefer-to-be-uuidConverts UUID regex validation to toBeUuid() matchercoding-style
lint/pest/prefer-to-containConverts in_array() checks to toContain() matchercoding-style
lint/pest/prefer-to-contain-equalConverts in_array(..., false) checks to toContainEqual() matchercoding-style
lint/pest/prefer-to-contain-only-instances-ofConverts ->each->toBeInstanceOf() pattern to toContainOnlyInstancesOf() matchercoding-style
lint/pest/prefer-to-end-withConverts str_ends_with() checks to toEndWith() matchercoding-style
lint/pest/prefer-to-equal-canonicalizingConverts sort-then-compare to toEqualCanonicalizing() matchercoding-style
lint/pest/prefer-to-equal-with-deltaConverts expect(abs($a - $b) < $delta)->toBeTrue() to expect($a)->toEqualWithDelta($b, $delta)coding-style
lint/pest/prefer-to-have-countConverts expect(count($arr))->toBe(5) to expect($arr)->toHaveCount(5)coding-style
lint/pest/prefer-to-have-keyConverts array_key_exists() checks to toHaveKey() matchercoding-style
lint/pest/prefer-to-have-keysConverts chained toHaveKey() calls to toHaveKeys() with array of keyscoding-style
lint/pest/prefer-to-have-lengthConverts strlen()/mb_strlen() comparisons to toHaveLength() matchercoding-style
lint/pest/prefer-to-have-method-on-classChanges expect($object)->toHaveMethod() to expect($object::class)->toHaveMethod() for Pest v3coding-style
lint/pest/prefer-to-have-propertiesConverts chained toHaveProperty() calls to toHaveProperties() with array of propertiescoding-style
lint/pest/prefer-to-have-propertyConverts property_exists() checks to toHaveProperty() matchercoding-style
lint/pest/prefer-to-have-same-sizeConverts expect(count($a))->toBe(count($b)) to expect($a)->toHaveSameSize($b)coding-style
lint/pest/prefer-to-matchConverts expect(preg_match("/pattern/", $str))->toBe(1) to expect($str)->toMatch("/pattern/")coding-style
lint/pest/prefer-to-match-arrayConverts multiple array element assertions to toMatchArray() matchercoding-style
lint/pest/prefer-to-match-objectConverts consecutive toHaveProperty() with values to toMatchObject() matchercoding-style
lint/pest/prefer-to-start-withConverts str_starts_with() checks to toStartWith() matchercoding-style
lint/pest/prefer-to-throwUse expect()->toThrow() instead of expectException() or try/catch in Pest tests.coding-style
lint/pest/prefer-type-matchersConverts expect(is_array($x))->toBeTrue() to expect($x)->toBeArray()coding-style
lint/pest/require-type-matcher-firstEnsure type-check matchers (e.g. toBeInt, toBeInstanceOf) appear before value assertions in expect() chains and consecutive expectscoding-style
lint/php-8.1/prefer-first-class-callableUse first-class callable syntax (strlen(...)) instead of closures, Closure::fromCallable() and string or array callables.Opt-in
lint/php-8.2/add-skip-dots-flagPrior PHP 8.2 FilesystemIterator::SKIP_DOTS was always set and could not be removed, therefore FilesystemIterator::SKIP_DOTS is added in order to keep this behaviourmodernize
lint/php-8.2/no-dollar-brace-interpolationReplace deprecated ${var} to {$var}modernize
lint/php-8.2/no-utf8-encode-decodeChange deprecated utf8_decode() and utf8_encode() to mb_convert_encoding()modernize
lint/php-8.2/prefer-readonly-classDecorate read-only class with readonly attributemodernize
lint/php-8.3/add-const-typeAdd type to constants based on their valuemodernize
lint/php-8.3/prefer-dynamic-class-constantconstant(Example::class . '::' . $constName) to dynamic class const fetch Example::{$constName}modernize
lint/php-8.3/prefer-json-validateReplace json_decode($json, true) !== null && json_last_error() === JSON_ERROR_NONE with json_validate()modernize
lint/php-8.3/prefer-ldap-uriCombine separated host and port on ldap_connect() argsmodernize
lint/php-8.3/prefer-readonly-anonymous-classDecorate read-only anonymous class with readonly attributemodernize
lint/php-8.3/prefer-self-classReplace calls to get_class() and get_parent_class() without arguments with self::class and parent::classmodernize
lint/php-8.4/add-csv-escape-argumentAdd escape argument on CSV function callsmodernize
lint/php-8.4/prefer-array-findReplace foreach loops with array_find(), array_find_key(), array_any() or array_all() (PHP 8.4).modernize
lint/php-8.4/prefer-round-mode-enumReplace rounding mode constant to RoundMode enum in round()modernize
lint/php-8.5/no-finfo-buffer-contextRemove argument by position by function namemodernize
lint/php-8.5/no-null-array-keyReplace null key in array_key_exists with empty stringmodernize
lint/php-8.5/no-null-debug-infoReplaces null return value with empty array in __debugInfo methodsmodernize
lint/php-8.5/no-out-of-range-chrWrap chr() argument with % 256 to avoid deprecated out-of-range integersmodernize
lint/php-8.5/prefer-array-first-lastMake use of array_first() and array_last()modernize
lint/php-8.5/prefer-ord-first-byteReplace ord($str) with ord($str[0])modernize
lint/php-8.6/prefer-clampConvert nested min()/max() calls to clamp()modernize
lint/php-8.6/prefer-readonly-property-defaultPlannedMove a constant constructor assignment of a readonly property to a property default valuemodernize
lint/phpdoc/add-missing-paramPHPDoc should contain @param for all params.coding-style
lint/phpdoc/no-access@access annotations must be removed from PHPDoc.coding-style
lint/phpdoc/no-empty-return@return void and @return null annotations must be removed from PHPDoc.coding-style
lint/phpdoc/no-misplacedDocblocks should only be used on structural elements.coding-style
lint/phpdoc/no-mixed-overruled-by-nativeRemove @param mixed and @return mixed docblock that duplicates an already declared native typedead-code
lint/phpdoc/no-package@package and @subpackage annotations must be removed from PHPDoc.coding-style
lint/phpdoc/no-superfluous-tagsRemoves @param, @return and @var tags that don't provide any useful information.dead-code
lint/phpdoc/no-useless-inheritdocClassy that does not inherit must not have @inheritdoc tags.coding-style
lint/phpdoc/no-useless-paramRemove @param docblock with same type as parameter typedead-code
lint/phpdoc/no-useless-readonlyRemove useless @readonly annotation on native readonly typedead-code
lint/phpdoc/no-useless-returnRemove @return docblock with same type as defined in PHPdead-code
lint/phpdoc/no-useless-varRemove unused @var annotation for properties and class constantsdead-code
lint/phpdoc/no-void-on-magic-methodRemove useless @return void docblock from magic methods __construct, __destruct, and __clonedead-code
lint/phpdoc/require-no-named-argumentsThere must be @no-named-arguments tag in PHPDoc of a class/enum/interface/trait.Opt-in
lint/phpunit/add-allow-mock-objects-attributeAdd #[AllowMockObjectsWithoutExpectations] to PHPUnit test classes whose mocks have no expectations.Opt-in
lint/phpunit/add-closure-return-type-from-assertAdd return type to closures narrowed by assertInstanceOf() inside PHPUnit test case classestypes
lint/phpunit/add-data-provider-allow-mock-objectsAdd #[AllowMockObjectsWithoutExpectations] attribute to PHPUnit test classes that have methods with data providers and mock objects without expectationsOpt-in
lint/phpunit/add-data-provider-iterator-return-typeAdd Iterator type on known PHPUnit data providerstypes
lint/phpunit/add-depended-test-return-typeAdd return type declaration to a test method that returns typecode-quality
lint/phpunit/add-instanceof-assertAdd an assertInstanceOf() before a nullable object is used in a PHPUnit test.code-quality
lint/phpunit/add-instanceof-assert-for-argumentAdd explicit instance assert between above nullable object passcode-quality
lint/phpunit/add-mock-intersection-paramAdd a MockObject intersection @param docblock with the mocked class, based on the mock passed in the private method callcode-quality
lint/phpunit/add-mock-intersection-typeAdd MockObject&Foo / Stub&Foo intersection types to PHPDoc of mock and stub properties, params and returns.code-quality
lint/phpunit/add-mock-object-typeChange param type of a private test method to MockObject, when expects() is called on itOpt-in
lint/phpunit/add-param-type-dependsAdd param type declaration based on @depends test method return typecode-quality
lint/phpunit/add-property-type-container-getAdd strict typed property to a private test case property based on its @var object type, when assigned via container fetch in setUp()types
lint/phpunit/add-property-type-create-mockAdd "PHPUnit\Framework\MockObject\MockObject" typed property from assigned mock to clearly separate from real objectstypes
lint/phpunit/add-property-type-setupAdd strict typed property based on setUp() strict typed assigns in TestCasetypes
lint/phpunit/add-property-type-setup-docblockAdd property type in PHPUnit test from docblock, if defined in setUp() methodtypes
lint/phpunit/add-return-type-from-mock-objectAdd known property and return MockObject typestypes
lint/phpunit/add-stub-intersection-typeAdd a Stub intersection @var docblock with the stubbed class to a native Stub propertycode-quality
lint/phpunit/add-test-void-returnAdd void to PHPUnit test methodstypes
lint/phpunit/add-will-return-callback-false-fallbackPlannedAdd a "return false" fallback to a willReturnCallback() closure that only returns booleans, but can fall through without a returncode-quality
lint/phpunit/add-will-return-callback-param-typeDecorate callbacks and arrow functions in willReturnCallback() with known param/return types based on reflection methodcode-quality
lint/phpunit/no-any-matcherPlannedChange deprecated $this->any() matcher assign to direct new AnyInvokedCount()Opt-in
lint/phpunit/no-assert-contains-onlyReplaces Assert::assertContainsOnly() calls with type-specific Assert::assertContainsOnly*() callsOpt-in
lint/phpunit/no-assert-internal-typeReplace assertInternalType() with the dedicated assertIs*() assertion.code-quality
lint/phpunit/no-assert-is-typeReplaces Assert::isType() calls with type-specific Assert::is*() callsOpt-in
lint/phpunit/no-assert-same-type-mismatchCorrect expected type in assertSame() method to match strict type of passed variablecode-quality
lint/phpunit/no-at-matcherReplace at() method call with desired matchercode-quality
lint/phpunit/no-bare-mock-assignUse a createMock() result directly where it is used once, instead of assigning it to a variable firstcode-quality
lint/phpunit/no-bare-mock-builderRemove getMockBuilder() to createMock()code-quality
lint/phpunit/no-empty-testRemove empty test methodscode-quality
lint/phpunit/no-entity-mockMove from entity mock, to direct use of class instance and setterscode-quality
lint/phpunit/no-expected-exception-annotationReplace @expectedException annotations with expectException() calls.code-quality
lint/phpunit/no-expects-anyRemove expect($this->any()) from mocks as it has no added valuecode-quality
lint/phpunit/no-final-constructor-overrideRemove override final construct test caseOpt-in
lint/phpunit/no-flipped-assertionTurns accidentally flipped assert order to right one, with expected expr to leftcode-quality
lint/phpunit/no-float-delta-parameterChange assertEquals()/assertSame() method using float on expected argument to new specific alternatives.code-quality
lint/phpunit/no-mock-intersection-propertyMake properties in tests with intersection mock object either object type or mock typecode-quality
lint/phpunit/no-negated-assertionTurns not-operator comparisons to their method name alternatives in PHPUnit TestCasecode-quality
lint/phpunit/no-setup-override-attributeRemove override attribute, if setUp()/tearDown() references parent call to improve readabilitycode-quality
lint/phpunit/no-stub-with-expectationsChange createStub() to createMock(), when the created variable is passed to a method that requires MockObject typecode-quality
lint/phpunit/no-test-constructorReplace or remove __construct() in PHPUnit test cases; use setUp().code-quality
lint/phpunit/no-unused-mockRemove standalone method calls with no effectcode-quality
lint/phpunit/no-unused-mock-propertyRemove never used property mock, only to set expectationscode-quality
lint/phpunit/no-value-object-mockUse a real instance instead of a mock for entities and simple value objects in tests.code-quality
lint/phpunit/prefer-assertTurns assert() calls in tests to PHPUnit assert method alternativecode-quality
lint/phpunit/prefer-assert-array-has-keyTurns assertTrue() + isset() comparisons to more precise assertArrayHasKey() methodcode-quality
lint/phpunit/prefer-assert-countReplaces use of assertSame and assertEquals on Countable objects with count methodcode-quality
lint/phpunit/prefer-assert-instanceofTurns instanceof comparisons to their method name alternatives in PHPUnit TestCasecode-quality
lint/phpunit/prefer-assert-instanceof-over-emptyChange assertNotEmpty() and assertNotNull() on an object to more clear assertInstanceof()code-quality
lint/phpunit/prefer-assert-instances-ofSimplify unnecessary foreach check of instancescode-quality
lint/phpunit/prefer-assert-null-true-falseTurns same bool and null comparisons to their method name alternatives in PHPUnit TestCasecode-quality
lint/phpunit/prefer-assert-samePHPUnit methods like assertSame should be used instead of assertEquals.code-quality
lint/phpunit/prefer-assert-string-containsTurns strpos/stripos comparisons to their method name alternatives in PHPUnit TestCasecode-quality
lint/phpunit/prefer-assert-true-falseChange $this->assertSame(true, ...) to assertTrue()code-quality
lint/phpunit/prefer-attribute-over-annotationChange annotations with value to attributeOpt-in
lint/phpunit/prefer-attributesPHPUnit attributes must be used over their respective PHPDoc-based annotations.Opt-in
lint/phpunit/prefer-comparison-assertionReplace assertTrue()/assertFalse() on a comparison, instanceof, isset, count or strpos with the specific assertion.code-quality
lint/phpunit/prefer-covers-attributeChange covers annotations with value to attributeOpt-in
lint/phpunit/prefer-create-mockReplace getMock*() with createMock().code-quality
lint/phpunit/prefer-create-stubUse createStub() instead of createMock() when no expectations are set.code-quality
lint/phpunit/prefer-create-stub-argumentUse createStub() over createMock() when used as argument or array value and does not add any mock requirementscode-quality
lint/phpunit/prefer-create-stub-expressionReplace createMock() assigned to variable that is only used as arg with no expectations, to createStub()code-quality
lint/phpunit/prefer-create-stub-in-coalesceUse createStub() over createMock() when used as argument/array item coalesce ?? fallbackcode-quality
lint/phpunit/prefer-data-providerReplace testWith annotation to data provider.code-quality
lint/phpunit/prefer-data-provider-attributeChange dataProvider annotations to attributeOpt-in
lint/phpunit/prefer-dedicated-assertionUse dedicated PHPUnit assertions such as assertFileExists() instead of assertTrue(file_exists()).code-quality
lint/phpunit/prefer-depends-attributeChange depends annotations with value to attributeOpt-in
lint/phpunit/prefer-expect-exceptionReplace setExpectedException*() with expectException*().code-quality
lint/phpunit/prefer-inline-create-stubInline stub property only used to pass as new argument to a method callcode-quality
lint/phpunit/prefer-local-over-setup-propertyTurn property used only in setUp() to variablecode-quality
lint/phpunit/prefer-mock-intersection-returnChange a MockObject @return union docblock to an intersection typecode-quality
lint/phpunit/prefer-named-data-provider-keysChange the array-index names to the argument name of the dataProviderOpt-in
lint/phpunit/prefer-namespacedPHPUnit classes MUST be used in namespaced version, e.g. \PHPUnit\Framework\TestCase instead of \PHPUnit_Framework_TestCase.code-quality
lint/phpunit/prefer-narrow-will-return-callbackNarrow single-value match willReturnCallback() to with() and willReturn() callcode-quality
lint/phpunit/prefer-narrow-with-consecutiveNarrow identical withConsecutive() and willReturnOnConsecutiveCalls() to single callcode-quality
lint/phpunit/prefer-new-assertion-namesRename deprecated PHPUnit assertions like assertFileNotExists to new methods like assertFileDoesNotExist.code-quality
lint/phpunit/prefer-property-assertionsSplit object casted to array to assert public properties to standalone assert callscode-quality
lint/phpunit/prefer-requires-attributeChange Requires annotations with values to attributesOpt-in
lint/phpunit/prefer-short-will-returnUse willReturn() and similar instead of will($this->returnValue()).code-quality
lint/phpunit/prefer-simple-callback-assertReplaces use of with, callback and sole assertSame() to simple equalTo() matchercode-quality
lint/phpunit/prefer-simple-mock-expectationReplace withConsecutive()/willReturnCallback() that cover one value with with()/willReturn().code-quality
lint/phpunit/prefer-simple-with-matcherSimplify ->with() matchers: plain values instead of equalTo(), isInstanceOf() instead of a callback.code-quality
lint/phpunit/prefer-specific-assertionsPHPUnit assertion method calls like ->assertSame(true, $foo) should be written with dedicated method like ->assertTrue($foo).code-quality
lint/phpunit/prefer-specific-true-false-assertionTurns true/false comparisons to their method name alternatives in PHPUnit TestCase when possiblecode-quality
lint/phpunit/prefer-specific-will-methodChanges $mock->will() call to more specific methodcode-quality
lint/phpunit/prefer-standalone-asserts-over-callbackReplaces identical compare in $this->callable() sole return to standalone PHPUnit asserts that show more detailed failure messagescode-quality
lint/phpunit/prefer-stub-varUpdate the @var docblock of a property changed to a Stub native type, from MockObject to Stubcode-quality
lint/phpunit/prefer-test-attributeSuggests using PHPUnit's #[Test] attribute instead of the test method name prefix.code-quality
lint/phpunit/prefer-test-prefixReplace @test with prefixed functioncode-quality
lint/phpunit/prefer-test-with-attributeChange @testWith() annotation to #[TestWith] attributeOpt-in
lint/phpunit/prefer-this-callChanges PHPUnit calls from self::assert*() to $this->assert*()code-quality
lint/phpunit/prefer-ticket-attributeChange annotations with value to attributeOpt-in
lint/phpunit/prefer-will-return-callbackMerge ->with($this->callback()) and ->willReturn() into willReturnCallback().code-quality
lint/phpunit/prefer-with-is-instance-ofReplaces use of with, callable and instance assert to simple isInstanceOf() methodcode-quality
lint/phpunit/prefer-yield-data-providerTurns array return to yield in data providerscode-quality
lint/phpunit/require-assertion-styleCalls to PHPUnit\Framework\TestCase static methods (like assertions) must all be of the same type, either $this->, self:: or static::.code-quality
lint/phpunit/require-coversAdds a default @coversNothing annotation to PHPUnit test classes that have no @covers* annotation.Opt-in
lint/phpunit/require-data-provider-namingData provider names must match the name of the test.Opt-in
lint/phpunit/require-data-provider-newlinesChange data provider in PHPUnit test case to newline per itemcode-quality
lint/phpunit/require-data-provider-orderData provider method must be placed after/before the last/first test where used.coding-style
lint/phpunit/require-exact-test-argument-typeCorrect expected type in setter of tests, if param type is strictly definedcode-quality
lint/phpunit/require-final-test-caseMake PHPUnit test case finalcode-quality
lint/phpunit/require-internalAll PHPUnit test classes should be marked as internal.Opt-in
lint/phpunit/require-iterable-data-providerThe return type of PHPUnit data provider must be iterable.code-quality
lint/phpunit/require-method-casingEnforce camel (or snake) case for PHPUnit test methods, following configuration.coding-style
lint/phpunit/require-mock-expectsAdd an explicit expects() to mocked method calls.code-quality
lint/phpunit/require-protected-setupChanges the visibility of the setUp() and tearDown() functions of PHPUnit to protected, to match the PHPUnit TestCase.Opt-in
lint/phpunit/require-sizeAll PHPUnit test cases should have @small, @medium or @large annotation to enable run time limits.Opt-in
lint/phpunit/require-static-data-providerMake PHPUnit data providers static.code-quality
lint/phpunit/require-strict-types-in-testsAdd declare(strict_types=1) to PHPUnit test class filecode-quality
lint/phpunit/require-string-assert-argumentCast 2nd argument in assertStringContainsString() to a string if not yetcode-quality
lint/phpunit/require-test-annotation-styleMark tests consistently: a test prefix or a @test annotation.code-quality
lint/refactor/add-override-attributeAdd #[Override] to properties that override a parent class's property (PHP 8.5).Opt-in
lint/refactor/no-negated-conditionFlip a ternary whose condition is negated: drop the ! (or use === / ==) and swap the branches.code-quality
lint/refactor/prefer-attribute-over-annotationReplace configured PHPDoc annotations (including nested ones) with attributes.Opt-in
lint/refactor/prefer-constantReplace function calls that return a constant (php_sapi_name(), pi(), ...) with the constant.coding-style
lint/refactor/remove-attributeRemoves configured attributes by their respective FQN.Opt-in
lint/refactor/remove-function-argumentRemove argument by position by function nameOpt-in
lint/refactor/remove-function-callRemove defined function callsOpt-in
lint/refactor/remove-phpdoc-annotationRemoves configured annotations from PHPDoc.Opt-in
lint/refactor/rename-castRenames castsOpt-in
lint/refactor/rename-classReplace defined classes by new onesOpt-in
lint/refactor/rename-class-constantReplace defined class constants in their callsOpt-in
lint/refactor/rename-constantReplace constant by new onesOpt-in
lint/refactor/rename-functionTurn defined function call new oneOpt-in
lint/refactor/rename-methodTurn method names to new onesOpt-in
lint/refactor/rename-phpdoc-tagRenames PHPDoc tags.Opt-in
lint/refactor/replace-function-with-constantChanges use of function calls to use constantsOpt-in
lint/refactor/replace-function-with-newChange configured function calls to new InstanceOpt-in
lint/refactor/replace-function-with-staticTurn defined function call to static method callOpt-in
lint/refactor/replace-static-with-methodChange static call to service method via constructor injectionOpt-in
lint/security/add-sensitive-parameterRequires that parameters that are likely to contain sensitive information (e.g., passwords) are marked with the #[SensitiveParameter] attribute.code-quality
lint/security/no-debug-callsRemove or report debug calls left in code: dd(), dump(), var_dump(), ray(), and ->dd()/->dump() in Pest expectations.coding-style
lint/security/no-evalDetects unsafe uses of the eval construct.code-quality
lint/security/no-ffiDetects unsafe use of the PHP FFI (Foreign Function Interface) extension.code-quality
lint/security/no-globalDetects the use of the global keyword and the $GLOBALS variable.code-quality
lint/security/no-homoglyph-namesReplace accidental usage of homoglyphs (non ascii characters) in names.code-quality
lint/security/no-insecure-comparisonDetects insecure comparison of passwords or tokens using ==, !=, ===, or !==.code-quality
lint/security/no-literal-passwordDetects the use of literal values for passwords or sensitive data.code-quality
lint/security/no-request-variableDetects the use of the $_REQUEST variable, which is considered unsafe.code-quality
lint/security/no-restricted-functionsFlags calls to functions that are disallowed via rule configuration.Opt-in
lint/security/no-restricted-instantiationFlags direct instantiation of specific types that are disallowed via rule configuration.Opt-in
lint/security/no-tainted-dataDetects user (tainted) data being passed directly to sink functions or constructs (such as echo, print, or user-defined "log" functions).code-quality
lint/security/require-preg-quote-delimiterThis rule requires that when using preg_quote(), the second $delimiter argument is always provided.code-quality
lint/statements/add-safe-strict-typesAdd declare(strict_types=1) if missing and only if the file is type-safe (no scalar type coercions).code-quality
lint/statements/no-emptyRemove useless (semicolon) statements.dead-code
lint/statements/require-strict-typesForce a strict types mode in all files.code-quality
lint/strings/no-non-printable-characterRemove Zero-width space (ZWSP), Non-breaking space (NBSP) and other invisible unicode symbols.code-quality
lint/strings/no-trailing-whitespace-in-stringThere must be no trailing whitespace at the end of lines in strings.Opt-in
lint/strings/prefer-mb-functionsReplace non multibyte-safe functions with corresponding mb function.Opt-in
lint/strings/require-interpolation-styleEnforces a consistent string style: either prefer string interpolationOpt-in
lint/strings/require-string-line-endingAll multi-line strings must use correct line ending.Opt-in
lint/style/add-param-type-from-phpdocTakes @param annotations of non-mixed types and adjusts accordingly the function signature.Opt-in
lint/style/add-property-type-from-phpdocTakes @var annotation of non-mixed types and adjusts accordingly the property signature..Opt-in
lint/style/add-return-type-from-phpdocTakes @return annotation of non-mixed types and adjusts accordingly the function signature.Opt-in
lint/style/no-alias-functionMaster functions shall be used instead of aliases.coding-style
lint/style/no-ambiguous-constantEnforces that all constant references made from within a namespace are explicit.Opt-in
lint/style/no-ambiguous-functionEnforces that all function calls made from within a namespace are explicit.Opt-in
lint/style/no-array-accumulation-in-loopDetects O(n²) array accumulation patterns inside loops.coding-style
lint/style/no-array-pushConverts simple usages of array_push($x, $y); to $x[] = $y;.code-quality
lint/style/no-assign-in-ternary-branchAssign outcome of ternary condition to variable, where applicablecode-quality
lint/style/no-call-user-funcCall callables directly instead of through call_user_func().code-qualitycoding-style
lint/style/no-dynamic-method-callDisallows calling a method by a variable name ($object->$method()).coding-style
lint/style/no-dynamic-method-callableDisallows a first-class callable of a method with a variable name ($object->$method(...)).coding-style
lint/style/no-dynamic-propertyDisallows accessing a property by a variable name ($object->$property).coding-style
lint/style/no-dynamic-static-callDisallows calling a static method by a variable name (Foo::$method()).coding-style
lint/style/no-dynamic-static-callableDisallows a first-class callable of a static method with a variable name (Foo::$method(...)).coding-style
lint/style/no-dynamic-static-propertyDisallows accessing a static property by a variable name (Foo::$$property).coding-style
lint/style/no-emptyDetects the use of the empty() construct.code-quality
lint/style/no-eregReplace deprecated ereg regular expression functions with preg.modernize
lint/style/no-escaped-quotesPrefer quote that are not inside the stringcoding-style
lint/style/no-hash-emojiDiscourages usage of the #️⃣ emoji in place of the ASCII #.coding-style
lint/style/no-ini-setEnforces that ini_set is not used.Opt-in
lint/style/no-inline-htmlDisallows inline content (text outside of PHP tags) in source files.Opt-in
lint/style/no-invalid-phpdocChecks for syntax errors in docblock comments, such as malformed {@see} orcoding-style
lint/style/no-is-nullReplaces is_null($var) expression with null === $var.Opt-in
lint/style/no-issetDetects the use of the isset() construct.Opt-in
lint/style/no-multi-assignSplit chained assignments ($a = $b = 1) into one assignment per statement.coding-style
lint/style/no-multiple-classes-per-fileEnsures that each file contains at most one class-like definition (class, interface, enum, or trait).Opt-in
lint/style/no-nested-ternaryNested ternary expressions are disallowed to improve code clarity and prevent potential bugs arising from confusion over operator associativity.coding-style
lint/style/no-parameter-shadowingDetects when a function or method parameter is shadowed by a loop variable,coding-style
lint/style/no-php4-constructorConvert PHP4-style constructors to __construct.modernize
lint/style/no-redundant-finalRemoves final from methods where possible.modernize
lint/style/no-redundant-final-constRemove final from constants in classes defined as finaldead-code
lint/style/no-redundant-yield-fromYield from array must be unpacked to series of yields.coding-style
lint/style/no-short-ternaryDetects the use of the shorthand ternary and elvis operators.coding-style
lint/style/no-side-effects-with-declarationsEnforces that a PHP file either declares symbols (classes, functions,Opt-in
lint/style/no-sleep-wakeupReplace __sleep()/__wakeup() with __serialize()/__unserialize().modernize
lint/style/no-sprintf-concatDisallows string concatenation with the result of an sprintf call.Opt-in
lint/style/no-unreachable-loopDetects loops (for, foreach, while, do-while) that unconditionally break or returncoding-style
lint/style/no-useless-printfThere must be no printf calls with only the first argument.coding-style
lint/style/no-useless-sprintfRemove sprintf() calls with only the format argument.dead-code
lint/style/no-variable-variableDisallows variable variables ($$name).coding-style
lint/style/prefer-arrow-functionAnonymous functions with return as the only statement must use arrow functions.modernize
lint/style/prefer-cast-over-intvalReplaces intval, floatval, doubleval, strval and boolval function calls with according type casting operator.Opt-in
lint/style/prefer-cast-over-settypeCast shall be used, not settype.code-quality
lint/style/prefer-catch-name-from-typeType and name of catch exception should matchcoding-style
lint/style/prefer-class-constantUse Foo::class instead of class-name strings.modernizecoding-style
lint/style/prefer-class-keyword-on-objectReplace get_class calls on object variables with class keyword syntax.modernize
lint/style/prefer-compound-assignmentShorthand notation for operators should be used if possible.code-quality
lint/style/prefer-create-from-timestampSuggests DateTimeImmutable::createFromTimestamp() when a Unix timestamp is convertedOpt-in
lint/style/prefer-date-time-immutableClass DateTimeImmutable should be used instead of DateTime.Opt-in
lint/style/prefer-dir-constantReplaces dirname(__FILE__) expression with equivalent __DIR__ constant.modernize
lint/style/prefer-dirname-levelsReplace nested dirname() calls with one call and a $levels argument.modernize
lint/style/prefer-early-continueContinue early instead of nesting the loop body in an if.early-return
lint/style/prefer-early-returnReturn early instead of nesting the rest of the function in an if or else.code-quality
lint/style/prefer-early-return-over-prepared-valueReturn early from each if instead of preparing a variable that is returned at the end.code-quality
lint/style/prefer-empty-string-compareCompare with '' instead of strlen() === 0.code-quality
lint/style/prefer-generic-array-phpdocPHPDoc array<T> type must be used instead of T[].Opt-in
lint/style/prefer-instanceof-stringableDetects the legacy pattern is_object($x) && method_exists($x, '__toString') and suggestscoding-style
lint/style/prefer-list-phpdocPHPDoc list type must be used instead of array without a key.Opt-in
lint/style/prefer-php-version-idChanges use of call to version compare function to use of PHP version constantcoding-style
lint/style/prefer-phpdoc-commentComments with annotation should be docblock when used on structural elements.Opt-in
lint/style/prefer-pow-operatorConverts pow to the ** operator.modernize
lint/style/prefer-property-over-local-getterPrivatize getter of local property to propertyprivatization
lint/style/prefer-random-intReplaces rand, srand, getrandmax functions calls with their mt_* analogs or random_int.modernize
lint/style/prefer-readonly-keywordConverts readonly comment on classes to the readonly keyword.coding-style
lint/style/prefer-self-referenceInside class or interface element self should be preferred to the class name itself.Opt-in
lint/style/prefer-short-ternaryUse the Elvis operator ?: where possible.Opt-in
lint/style/prefer-spreadReplace call_user_func_array() with variadiccoding-style
lint/style/prefer-static-private-methodConverts private methods to static where possible.Opt-in
lint/style/prefer-str-containsReplace strpos() and stripos() calls with str_starts_with() or str_contains() if possible.modernize
lint/style/prefer-variadic-paramRefactor func_get_args() in to a variadic paramcoding-style
lint/style/prefer-while-loopSuggests using a while loop instead of a for loop when the for loop does not have anyOpt-in
lint/style/require-assign-set-paddingAdd extra space before new assign setcoding-style
lint/style/require-create-from-format-bangThe first argument of DateTime::createFromFormat method must start with !.Opt-in
lint/style/require-final-classAll classes must be final, except abstract ones and Doctrine entities.Opt-in
lint/style/require-final-internal-classInternal classes should be final.Opt-in
lint/style/require-final-public-methodAll public methods of abstract classes should be final.Opt-in
lint/style/require-fopen-binary-flagThe flags in fopen calls must omit t, and b must be omitted or included consistently.Opt-in
lint/style/require-fopen-flag-orderOrder the flags in fopen calls, b and t must be last.Opt-in
lint/style/require-implode-separatorFunction implode must be called with 2 arguments in the documented order.modernize
lint/style/require-namespaceDetects files that contain definitions (classes, interfaces, enums, traits, functions, or constants)Opt-in
lint/style/require-naming-conventionEnforce naming conventions for classes, interfaces, traits, enums, functions, methods, properties, constants and variables (options per kind).Opt-in
lint/style/require-ordered-traitsTrait use statements must be sorted alphabetically.Opt-in
lint/style/require-parent-visibilityMake method visibility same as parent onecoding-style
lint/style/require-phpdocDetects declarations that are missing a docblock.Opt-in
lint/style/require-sorted-integer-keysDetects array literals with integer keys that are not in ascending order.Opt-in
lint/style/require-statement-paddingAdd empty new line after different-type statements to improve code readabilitycoding-style
lint/style/require-todo-referenceRequire TODO and FIXME comments to reference a user or issue.Opt-in
lint/tags/no-invalid-open-tagDetects misspelled PHP opening tags like <php? instead of <?php.code-quality
lint/types/add-array-return-typeAdd return type from return direct arraytypes
lint/types/add-arrow-function-return-typeAdd known return type to arrow functiontypes
lint/types/add-bool-return-typeAdd bool return type based on strict bool returns type operationstypes
lint/types/add-bool-return-type-from-constAdd return bool, based on direct true/false returnstypes
lint/types/add-bool-return-type-from-mixed-returnsPlannedAdd bool return type when returns mix direct true/false consts with strict bool expressionstypes
lint/types/add-closure-never-returnAdd "never" return-type for closure that never return anythingtypes
lint/types/add-closure-return-typeAdd return type to closures based on known return valuestypes
lint/types/add-closure-void-returnAdd closure return type void if there is no returntypes
lint/types/add-datetime-property-typeSet DateTime to DateTimeInterface for DateTime property with DateTimeInterface docblocktypes
lint/types/add-fluent-return-typeAdd return type from strict return $thistypes
lint/types/add-function-void-returnAdd function return type void if there is no returntypes
lint/types/add-getter-return-phpdocAdd @return array docblock to a getter method based on @var of the propertytypes
lint/types/add-magic-method-return-typeAdd known magic methods parameter and return type declarationstypes
lint/types/add-method-void-returnAdd return type void to function like without any returntypes
lint/types/add-never-return-typeAdd a never return type to functions, methods and closures that never return.types
lint/types/add-nullable-return-typeAdd basic ? nullable type to class methods and functions, as of PHP 7.1types
lint/types/add-numeric-return-typeAdd int/float return type based on strict typed returnstypes
lint/types/add-numeric-return-type-from-scalarAdd int/float return type based on strict scalar returns typetypes
lint/types/add-param-phpdoc-from-callable-callAdd param array docblock based on callable native function calltypes
lint/types/add-param-phpdoc-from-dim-fetchAdd @param docblock array type, based on array dim fetch accesstypes
lint/types/add-param-phpdoc-from-local-callsAdd @param array docblock to a class method based on local call typestypes
lint/types/add-param-phpdoc-from-reference-assignAdd @param docblock array type, based on type to assigned parameter referencetypes
lint/types/add-param-type-array-any-allAdd a type to an untyped array_any()/array_all() closure param, based on the array item typetypes
lint/types/add-param-type-array-dim-fetchAdd array type based on array dim fetch usetypes
lint/types/add-param-type-array-functionAdd array_filter()/array_map() function closure param type, based on passed iterabletypes
lint/types/add-param-type-array-mapApplies type hints to array_map closurestypes
lint/types/add-param-type-array-reduceApplies type hints to array_reduce closurestypes
lint/types/add-param-type-arrow-dim-fetchAdd closure and arrow function param array type, if dim fetch is used insidetypes
lint/types/add-param-type-data-providerAdds param type declaration based on PHPUnit provider return type declarationtypes
lint/types/add-param-type-dim-fetch-keyAdd method param type based on use in array dim fetch of known keystypes
lint/types/add-param-type-iterable-method-callApplies type hints to closures on Iterable method calls where key/value types are documentedtypes
lint/types/add-param-type-method-callChange private method param type to strict type, based on passed strict typestypes
lint/types/add-param-type-propertyAdd param type declaration based on property typetypes
lint/types/add-param-type-spl-fixed-arrayAdd exact fixed array type in known casestypes
lint/types/add-param-type-variable-callAdd closure param object type based on the argument the assigned closure variable is called withtypes
lint/types/add-private-method-array-return-typeAdd strict return array type to private methods based on created empty array and returnedtypes
lint/types/add-property-type-assignsAdd typed property from assigned typestypes
lint/types/add-property-type-constructorAdd typed properties based only on strict constructor typestypes
lint/types/add-property-type-get-repositoryAdd strict typed property to a private test case property based on its @var object type, when assigned via entity manager getRepository() fetch in setUp()types
lint/types/add-property-type-setter-getterAdd property type based on strict setter and getter methodtypes
lint/types/add-return-phpdoc-common-objectAdd @return docblock array of objects, that have common denominator interface/parent classtypes
lint/types/add-return-phpdoc-dim-assigned-objectAdd @return docblock array of objects, that are dim assigned to returned variabletypes
lint/types/add-return-phpdoc-direct-arrayAdd simple @return array docblock based on direct single level direct return of []types
lint/types/add-return-phpdoc-json-arrayAdd @return docblock for array based on return of json_decode() return arraytypes
lint/types/add-return-phpdoc-scalar-arrayAdd @return docblock for scalar array from strict array assignmentstypes
lint/types/add-return-type-from-castAdd return type to function like with return casttypes
lint/types/add-return-type-from-constantAdd strict type declaration based on returned constantstypes
lint/types/add-return-type-from-get-repositoryAdd repository return type declaration based on @return docblock, when a method returns entity manager getRepository() fetchtypes
lint/types/add-return-type-from-native-callAdd strict return type based native function or native methodtypes
lint/types/add-return-type-from-newAdd return type to function like with return newtypes
lint/types/add-return-type-from-new-arrayAdd strict return array type based on created empty array and returnedtypes
lint/types/add-return-type-from-paramAdd return type based on strict parameter typetypes
lint/types/add-return-type-from-parentAdd missing return type declaration based on parent class methodtypes
lint/types/add-return-type-from-propertyAdd return method return type based on strict typed propertytypes
lint/types/add-return-type-from-ternaryAdd method return type based on strict ternary valuestypes
lint/types/add-return-type-from-try-catchAdd known type declarations based on first-level try/catch return valuestypes
lint/types/add-return-type-from-typed-callAdd return type from strict return type of calltypes
lint/types/add-return-type-from-yieldAdd return type declarations from yieldstypes
lint/types/add-string-return-typeAdd string return type based on returned strict string valuestypes
lint/types/add-string-return-type-from-scalarAdd string return type based on returned string scalar valuestypes
lint/types/add-union-return-typeAdd union return typetypes
lint/types/add-var-phpdoc-from-constructor-paramAdd @var array docblock to a property based on @param of constructor assigntypes
lint/types/add-var-phpdoc-from-defaultAdd @var array docblock to array property based on iterable default valuetypes
lint/types/add-var-phpdoc-from-dim-fetchAdd @var array property docblock from dim fetches on property fetch assignmenttypes
lint/types/add-var-phpdoc-from-getterAdd @var array property docblock from its getter @returntypes
lint/types/add-void-return-typeAdd a void return type to functions, methods, closures and tests that never return a value.types
lint/types/no-loose-comparisonComparisons should be strict.code-quality
lint/types/no-nullsafe-on-non-nullCleanup unneeded nullsafe operatorcode-quality
lint/types/no-phpstan-phpdoc-tagPlannedMerge more precise @phpstan-var/@phpstan-param/@phpstan-return docblock tag into its native @var/@param/@return tagtypes
lint/types/prefer-explicit-null-instanceofMake implicit nullable object checks explicit with instanceofcode-quality
lint/types/prefer-generic-collection-phpdocChange @return "Type[]|ArrayCollection" union docblock to a generic "ArrayCollection<int, Type>"types
lint/types/prefer-identical-same-typeUse ===/!== over ==/!=, if values have the same typecode-quality
lint/types/prefer-instanceofUse instanceof instead of is_a(), null checks or truthiness checks on nullable objects.code-quality
lint/types/prefer-literal-bool-phpdocPlannedNarrow @return docblock "bool" to "false" or "true" when the native return type only allows one of themtypes
lint/types/prefer-narrow-param-typeNarrow an already nullable array_any()/array_all()/array_find()/array_find_key() closure param to the non-nullable array item typetypes
lint/types/prefer-specific-return-typeNarrows return type from generic object or parent class to specific class in final classes/methodstypes
lint/types/require-strict-paramFunctions should be used with $strict param set to true.coding-style
analyse/arrays/invalid-array-keyanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/arrays/invalid-destructuringanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/arrays/read-without-offsetanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/attributes/invalidanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/attributes/invalid-arrow-function-attributeanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/attributes/invalid-class-attributeanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/attributes/invalid-class-constant-attributeanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/attributes/invalid-closure-attributeanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/attributes/invalid-constant-attributeanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/attributes/invalid-enum-case-attributeanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/attributes/invalid-function-attributeanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/attributes/invalid-hook-attributeanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/attributes/invalid-method-attributeanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/attributes/invalid-parameter-attributeanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/attributes/invalid-property-attributeanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/attributes/invalid-trait-attributeanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/attributes/trait-as-attributeanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/casing/inherited-method-caseanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/casts/unset-not-supportedanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/abstract-method-in-concrete-classanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/abstract-private-methodanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/callable-property-typeanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/class-named-constantanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/conflicting-trait-constantanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/constant-in-traitanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/constructor-with-return-typeanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/disallowed-subtypeanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/duplicate-declarationanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/duplicate-trait-memberanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/dynamic-static-callanalyse-strictanalyse-max
analyse/classes/dynamic-static-callableanalyse-strictanalyse-max
analyse/classes/enum-case-outside-enumanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/final-constant-not-supportedanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/final-private-constantanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/final-private-methodanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/get-hook-without-readanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/inaccessible-class-constantanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/inaccessible-methodanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/inaccessible-propertyanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/incompatible-constant-overrideReports overrides of final constants, reduced constant visibility, and incompatible native or PHPDoc constant types. Native and PHPDoc covariance checks run with the essential preset and stricter presets.analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/incompatible-overrideanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/incompatible-property-overrideanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/inconsistent-constructoranalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/internal-class-usageanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/internal-constant-accessanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/internal-method-callanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/internal-method-callableanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/internal-property-accessanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/internal-static-method-callanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/internal-static-method-callableanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/internal-static-property-accessanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/invalid-dynamic-constant-fetchanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/invalid-enumanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/invalid-enum-implementsanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/invalid-extendsanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/invalid-implementsanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/invalid-interface-extendsanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/invalid-interface-propertyanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/invalid-method-callableChecks the receiver, method existence and visibility when creating a first-class instance method callable. Callable creation does not pass arguments to the method. The check-function-name-case option also checks method spelling.analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/invalid-newPlannedanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/invalid-phpdoc-readonlyanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/invalid-promoted-propertyanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/invalid-property-declarationanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/invalid-property-hookanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/invalid-readonly-propertyanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/invalid-static-method-callableChecks class and method existence, visibility, static-call rules and abstract methods when creating a first-class static method callable. Callable creation does not pass arguments. The check-function-name-case option also checks method spelling.analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/missing-method-implementationanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/missing-parent-constructor-callanalyse-strictanalyse-max
analyse/classes/missing-required-interfaceanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/missing-required-parentanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/missing-serialize-methodsanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/new-as-callableanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/new-static-in-abstractanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/non-public-interface-methodanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/private-consistent-constructoranalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/read-write-only-propertyanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/readonly-class-not-supportedanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/set-hook-without-assignanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/typed-constant-not-supportedanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/uninitialized-phpdoc-readonlyanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/uninitialized-propertyanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/uninitialized-readonlyanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/classes/unsafe-new-staticanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/comments/invalid-ignoreanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/control-flow/break-outside-loopanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/control-flow/non-boolean-conditionanalyse-strictanalyse-max
analyse/control-flow/non-boolean-do-whileanalyse-strictanalyse-max
analyse/control-flow/non-boolean-elseifanalyse-strictanalyse-max
analyse/control-flow/non-boolean-ternaryanalyse-strictanalyse-max
analyse/control-flow/non-boolean-whileanalyse-strictanalyse-max
analyse/control-flow/switch-type-mismatchanalyse-strictanalyse-max
analyse/control-flow/unhandled-matchanalyse-recommendedanalyse-strictanalyse-max
analyse/dead-code/boolean-and-always-constantanalyse-recommendedanalyse-strictanalyse-max
analyse/dead-code/boolean-not-always-constantanalyse-recommendedanalyse-strictanalyse-max
analyse/dead-code/boolean-or-always-constantanalyse-recommendedanalyse-strictanalyse-max
analyse/dead-code/call-condition-always-constantanalyse-recommendedanalyse-strictanalyse-max
analyse/dead-code/discarded-function-resultanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/dead-code/discarded-method-resultanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/dead-code/discarded-static-method-resultanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/dead-code/do-while-always-constantanalyse-recommendedanalyse-strictanalyse-max
analyse/dead-code/elseif-always-constantanalyse-recommendedanalyse-strictanalyse-max
analyse/dead-code/finally-overrides-exitanalyse-recommendedanalyse-strictanalyse-max
analyse/dead-code/if-always-constantanalyse-recommendedanalyse-strictanalyse-max
analyse/dead-code/impossible-in-arrayanalyse-recommendedanalyse-strictanalyse-max
analyse/dead-code/impossible-instanceofanalyse-recommendedanalyse-strictanalyse-max
analyse/dead-code/impossible-method-type-checkanalyse-recommendedanalyse-strictanalyse-max
analyse/dead-code/impossible-static-type-checkanalyse-recommendedanalyse-strictanalyse-max
analyse/dead-code/impossible-type-checkanalyse-recommendedanalyse-strictanalyse-max
analyse/dead-code/loose-comparison-always-constantanalyse-recommendedanalyse-strictanalyse-max
analyse/dead-code/number-comparison-always-constantanalyse-recommendedanalyse-strictanalyse-max
analyse/dead-code/pure-function-result-unusedanalyse-recommendedanalyse-strictanalyse-max
analyse/dead-code/pure-method-result-unusedanalyse-recommendedanalyse-strictanalyse-max
analyse/dead-code/pure-new-result-unusedanalyse-recommendedanalyse-strictanalyse-max
analyse/dead-code/pure-static-method-result-unusedanalyse-recommendedanalyse-strictanalyse-max
analyse/dead-code/redundant-null-coalesceanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/dead-code/sort-without-effectanalyse-recommendedanalyse-strictanalyse-max
analyse/dead-code/strict-comparison-always-constantanalyse-recommendedanalyse-strictanalyse-max
analyse/dead-code/switch-always-constantanalyse-recommendedanalyse-strictanalyse-max
analyse/dead-code/ternary-always-constantanalyse-recommendedanalyse-strictanalyse-max
analyse/dead-code/trait-condition-always-constantanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/dead-code/unused-argumentanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/dead-code/unused-function-parameteranalyse-recommendedanalyse-strictanalyse-max
analyse/dead-code/unused-function-resultanalyse-recommendedanalyse-strictanalyse-max
analyse/dead-code/unused-method-parameteranalyse-recommendedanalyse-strictanalyse-max
analyse/dead-code/unused-method-resultanalyse-recommendedanalyse-strictanalyse-max
analyse/dead-code/unused-new-resultanalyse-recommendedanalyse-strictanalyse-max
analyse/dead-code/unused-private-propertyanalyse-recommendedanalyse-strictanalyse-max
analyse/dead-code/unused-static-method-resultanalyse-recommendedanalyse-strictanalyse-max
analyse/dead-code/unused-traitanalyse-recommendedanalyse-strictanalyse-max
analyse/dead-code/unused-variableanalyse-recommendedanalyse-strictanalyse-max
analyse/dead-code/useless-return-valueanalyse-recommendedanalyse-strictanalyse-max
analyse/dead-code/while-always-falseanalyse-recommendedanalyse-strictanalyse-max
analyse/dead-code/while-always-trueanalyse-recommendedanalyse-strictanalyse-max
analyse/dead-code/xor-always-constantanalyse-recommendedanalyse-strictanalyse-max
analyse/debug/assert-typeReports each assertType(), assertNativeType(), assertSuperType() or assertVariableCertainty() call that does not hold. Ignore comments and baselines cannot suppress these diagnostics.analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/debug/dump-native-typePlannedanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/debug/dump-phpdoc-typeReports each argument's inferred type as PHPDoc. Ignore comments and baselines cannot suppress these diagnostics.analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/debug/dump-scopePlannedanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/debug/dump-typeReports each argument's inferred type in PHPStan's precise notation. Ignore comments and baselines cannot suppress these diagnostics.analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/deprecated/classanalyse-recommendedanalyse-strictanalyse-max
analyse/deprecated/class-constantanalyse-recommendedanalyse-strictanalyse-max
analyse/deprecated/constantanalyse-recommendedanalyse-strictanalyse-max
analyse/deprecated/functionanalyse-recommendedanalyse-strictanalyse-max
analyse/deprecated/ini-optionanalyse-recommendedanalyse-strictanalyse-max
analyse/deprecated/methodanalyse-recommendedanalyse-strictanalyse-max
analyse/deprecated/propertyanalyse-recommendedanalyse-strictanalyse-max
analyse/deprecated/to-stringanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/functions/closure-uses-thisanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/functions/conflicting-filter-var-flagsanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/functions/duplicate-parameteranalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/functions/internal-function-callanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/functions/internal-function-callableanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/functions/invalid-callable-callanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/functions/invalid-closure-useanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/functions/invalid-first-class-callableReports unknown named functions and non-callable expressions used in first-class callable syntax.analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/functions/invalid-parameter-nameanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/functions/invalid-pureanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/functions/invalid-pure-methodanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/functions/invalid-pure-property-hookanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/functions/invalid-vprintf-argumentsanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/functions/printf-placeholder-countanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/functions/unanalysed-inner-functionanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/functions/variadic-not-lastanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/imports/name-already-in-useanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/laravel/config-collectionanalyse-strictanalyse-max
analyse/laravel/deferrable-provider-missing-providesanalyse-recommendedanalyse-strictanalyse-max
analyse/laravel/missing-translationanalyse-recommendedanalyse-strictanalyse-max
analyse/laravel/no-auth-facade-in-request-scopeanalyse-strictanalyse-max
analyse/laravel/no-auth-helper-in-request-scopeanalyse-strictanalyse-max
analyse/laravel/no-env-outside-configanalyse-recommendedanalyse-strictanalyse-max
analyse/laravel/no-model-makeanalyse-recommendedanalyse-strictanalyse-max
analyse/laravel/octane-compatibilityanalyse-strictanalyse-max
analyse/laravel/redundant-collection-callanalyse-recommendedanalyse-strictanalyse-max
analyse/laravel/redundant-to-array-callanalyse-recommendedanalyse-strictanalyse-max
analyse/laravel/undefined-console-inputanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/laravel/undefined-model-appendanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/laravel/undefined-relationanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/laravel/unexpected-dispatch-argumentsanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/laravel/unused-viewanalyse-recommendedanalyse-strictanalyse-max
analyse/operators/non-boolean-and-operandanalyse-strictanalyse-max
analyse/operators/non-boolean-not-operandanalyse-strictanalyse-max
analyse/operators/non-boolean-or-operandanalyse-strictanalyse-max
analyse/operators/non-numeric-additionanalyse-strictanalyse-max
analyse/operators/non-numeric-divisionanalyse-strictanalyse-max
analyse/operators/non-numeric-exponentiationanalyse-strictanalyse-max
analyse/operators/non-numeric-moduloanalyse-strictanalyse-max
analyse/operators/non-numeric-multiplicationanalyse-strictanalyse-max
analyse/operators/non-numeric-post-decrementanalyse-strictanalyse-max
analyse/operators/non-numeric-post-incrementanalyse-strictanalyse-max
analyse/operators/non-numeric-pre-decrementanalyse-strictanalyse-max
analyse/operators/non-numeric-pre-incrementanalyse-strictanalyse-max
analyse/operators/non-numeric-subtractionanalyse-strictanalyse-max
analyse/operators/non-numeric-unary-minusanalyse-strictanalyse-max
analyse/operators/non-numeric-unary-plusanalyse-strictanalyse-max
analyse/phpdoc/constant-type-mismatchanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/phpdoc/hook-type-mismatchanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/phpdoc/invalidanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/phpdoc/invalid-assert-taganalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/phpdoc/invalid-conditional-returnanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/phpdoc/invalid-method-assert-taganalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/phpdoc/invalid-method-conditional-returnanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/phpdoc/invalid-method-taganalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/phpdoc/invalid-mixin-taganalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/phpdoc/invalid-param-callable-taganalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/phpdoc/invalid-phpstan-taganalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/phpdoc/invalid-property-taganalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/phpdoc/invalid-require-taganalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/phpdoc/invalid-sealed-taganalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/phpdoc/invalid-trait-method-taganalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/phpdoc/invalid-trait-mixin-taganalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/phpdoc/invalid-trait-property-taganalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/phpdoc/invalid-trait-require-extendsanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/phpdoc/invalid-trait-require-implementsanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/phpdoc/invalid-trait-type-aliasanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/phpdoc/invalid-trait-use-method-taganalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/phpdoc/invalid-trait-use-mixin-taganalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/phpdoc/invalid-trait-use-property-taganalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/phpdoc/invalid-trait-use-type-aliasanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/phpdoc/invalid-type-aliasanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/phpdoc/invalid-var-taganalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/phpdoc/invalid-var-tag-typeanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/phpdoc/misplaced-require-implementsanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/phpdoc/property-type-mismatchanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/phpdoc/sealed-on-traitanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/phpdoc/type-mismatchanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/phpdoc/var-tag-type-mismatchanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/statements/invalid-declare-strict-typesanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/statements/invalid-emptyanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/statements/invalid-issetanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/statements/magic-constant-out-of-contextanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/statements/non-capturing-catch-not-supportedanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/statements/throw-expression-not-supportedanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/strings/invalid-date-intervalanalyse-recommendedanalyse-strictanalyse-max
analyse/strings/invalid-date-timeanalyse-recommendedanalyse-strictanalyse-max
analyse/types/argumentanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/argument-not-numericanalyse-recommendedanalyse-strictanalyse-max
analyse/types/argument-not-stringableanalyse-recommendedanalyse-strictanalyse-max
analyse/types/arrow-function-nullsafe-by-refanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/arrow-function-param-defaultanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/arrow-function-returnanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/assign-to-thisanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/by-ref-foreach-on-expressionanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/call-user-func-argumentanalyse-recommendedanalyse-strictanalyse-max
analyse/types/catch-non-throwableanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/class-constant-valueanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/clone-non-objectanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/closure-param-defaultanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/closure-returnanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/constant-valueanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/dead-catchanalyse-recommendedanalyse-strictanalyse-max
analyse/types/define-valueanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/echo-non-stringanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/enum-template-not-allowedanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/foreach-non-iterableanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/foreach-on-empty-arrayanalyse-recommendedanalyse-strictanalyse-max
analyse/types/function-returnanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/function-varianceanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/generatoranalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/implode-non-stringanalyse-recommendedanalyse-strictanalyse-max
analyse/types/interpolated-non-stringanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/invalid-arrow-function-signatureanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/invalid-assignment-targetanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/invalid-binary-operationanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/invalid-castanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/invalid-class-genericsanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/invalid-class-templateanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/invalid-closure-signatureanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/invalid-comparisonanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/invalid-enum-genericsanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/invalid-function-signatureanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/invalid-function-templateanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/invalid-hook-signatureanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/invalid-inc-decanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/invalid-interface-genericsanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/invalid-interface-templateanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/invalid-method-signatureanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/invalid-method-tag-templateanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/invalid-method-templateanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/invalid-offsetanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/invalid-pipeReports a pipe callable whose first parameter is passed by reference. A pipe supplies a value, not a reference. The basic preset checks invokable $this receivers; essential and stricter presets check other callable expressions too.analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/invalid-property-assignmentanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/invalid-property-typeanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/invalid-regexanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/invalid-self-out-taganalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/invalid-throws-tagReports @throws types that are not subtypes of Throwable. Standalone void means no exception is thrown. Both branches of a conditional type must be valid. A union containing void is invalid.analyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/invalid-trait-method-tag-templateanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/invalid-trait-templateanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/invalid-trait-use-genericsanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/invalid-unary-operandanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/invalid-union-typeanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/invalid-unsetanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/invalid-void-castanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/method-param-defaultanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/method-varianceanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/missing-constant-typeanalyse-strictanalyse-max
analyse/types/missing-hook-throwsanalyse-max
analyse/types/missing-method-param-typeanalyse-strictanalyse-max
analyse/types/missing-method-return-typeanalyse-strictanalyse-max
analyse/types/missing-method-throwsanalyse-max
analyse/types/missing-param-typeanalyse-strictanalyse-max
analyse/types/missing-preg-quote-delimiteranalyse-recommendedanalyse-strictanalyse-max
analyse/types/missing-property-typeanalyse-strictanalyse-max
analyse/types/missing-returnanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/missing-return-typeanalyse-strictanalyse-max
analyse/types/missing-self-out-typeanalyse-strictanalyse-max
analyse/types/missing-throwsanalyse-max
analyse/types/nullsafe-by-ref-returnanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/offset-assignanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/offset-assign-opanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/offset-assign-valueanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/param-defaultanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/param-outanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/param-out-at-endanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/phpdoc-readonly-by-refanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/phpdoc-readonly-property-writeanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/print-non-stringanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/printf-argumentanalyse-recommendedanalyse-strictanalyse-max
analyse/types/property-assignanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/property-defaultanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/property-varianceanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/random-int-rangeanalyse-recommendedanalyse-strictanalyse-max
analyse/types/readonly-property-by-refanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/readonly-property-writeanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/redundant-array-valuesanalyse-recommendedanalyse-strictanalyse-max
analyse/types/renamed-parameter-in-subtypeanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/returnanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/return-by-ref-finallyPlannedanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/sort-non-stringableanalyse-recommendedanalyse-strictanalyse-max
analyse/types/this-in-globalanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/this-in-staticanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/throw-non-throwableanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/throws-not-covariantanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/throws-void-functionanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/throws-void-hookanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/throws-void-methodanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/too-wide-arrow-function-returnanalyse-recommendedanalyse-strictanalyse-max
analyse/types/too-wide-closure-returnanalyse-recommendedanalyse-strictanalyse-max
analyse/types/too-wide-function-param-outanalyse-recommendedanalyse-strictanalyse-max
analyse/types/too-wide-function-returnanalyse-recommendedanalyse-strictanalyse-max
analyse/types/too-wide-method-param-outanalyse-recommendedanalyse-strictanalyse-max
analyse/types/too-wide-method-returnanalyse-recommendedanalyse-strictanalyse-max
analyse/types/too-wide-propertyanalyse-recommendedanalyse-strictanalyse-max
analyse/types/unpack-non-iterableanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/unpack-string-keyanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/unused-hook-throws-typeanalyse-recommendedanalyse-strictanalyse-max
analyse/types/unused-method-throws-typeanalyse-recommendedanalyse-strictanalyse-max
analyse/types/unused-throws-typeanalyse-recommendedanalyse-strictanalyse-max
analyse/types/useless-array-filteranalyse-recommendedanalyse-strictanalyse-max
analyse/types/void-match-usedanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/write-to-readonly-propertyanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/yield-from-non-iterableanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/types/yield-outside-functionanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/undefined/assigned-propertyanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/undefined/assigned-static-propertyanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/undefined/class-constantanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/undefined/compact-variablePlannedanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/undefined/constantanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/undefined/functionanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/undefined/goto-labelanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/undefined/group-importanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/undefined/importanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/undefined/include-fileanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/undefined/instanceof-classanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/undefined/methodanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/undefined/offsetanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/undefined/propertyanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/undefined/static-methodanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/undefined/static-propertyanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/undefined/traitanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max
analyse/undefined/variablePlannedanalyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max

Last updated on

Was this page helpful?