format/arrays/indentation | Each element of an array must be indented exactly once. | format-laravel | ✓!±— |
format/arrays/index-brace | Array index should always be written by using square braces. | format-laravel | ✓!±— |
format/arrays/list-syntax | List (array destructuring) assignment should be declared using the configured syntax. | format-laravel | ✓!±— |
format/arrays/no-multiline-double-arrow | Operator => should not be surrounded by multi-line whitespaces. | format-laravel | ✓!±— |
format/arrays/no-space-around-offset | There MUST NOT be spaces around offset braces. | format-laravel | ✓!±— |
format/arrays/no-space-before-comma | In array declaration, there MUST NOT be a whitespace before each comma. | format-laravel | ✓!±— |
format/arrays/no-space-in-empty | Empty arrays should not contain only whitespace. | Opt-in | ✓!±— |
format/arrays/no-trailing-comma-single-line | If 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-comma | In array declaration, there MUST be a whitespace after each comma. | format-laravel | ✓!±— |
format/arrays/syntax | PHP arrays should be declared using the configured syntax. | format-laravel | ✓!±— |
format/arrays/trailing-comma-multiline | Arguments lists, array destructuring lists, arrays that are multi-line, match-lines and parameters lists must have a trailing comma. | format-laravel | ✓!±— |
format/arrays/trim-spaces | Arrays should be formatted like function/method arguments, without leading or trailing single line space. | format-laravel | ✓!±— |
format/attributes/empty-parentheses | PHP attributes declared without arguments must (not) be followed by empty parentheses. | Opt-in | ✓!±— |
format/attributes/no-block-spaces | Remove spaces before and after the attributes block. | Opt-in | ✓!±— |
format/attributes/ordered | Sorts attributes using the configured sort algorithm. | Opt-in | ✓!±— |
format/casing/class-reference | When referencing an internal class it must be written using the correct casing. | Opt-in | ✓!±— |
format/casing/constants | The PHP constants true, false, and null MUST be written using the correct casing. | format-laravelformat-psr12 | ✓!±— |
format/casing/integer-literals | Integer literals must be in correct case. | format-laravel | ✓!±— |
format/casing/keywords | PHP keywords MUST be in lower case. | format-laravelformat-psr12 | ✓!±— |
format/casing/magic-constants | Magic constants should be referred to using the correct casing. | format-laravel | ✓!±— |
format/casing/magic-methods | Magic method definitions and calls must be using the correct casing. | format-laravel | ✓!±— |
format/casing/native-functions | Function defined by PHP should be called using the correct casing. | format-laravel | ✓!±— |
format/casing/native-types | Native type declarations should be used in the correct case. | format-laravel | ✓!±— |
format/casing/static-reference | Class static references self, static and parent MUST be in lower case. | format-laravelformat-psr12 | ✓!±— |
format/casts/lowercase | Cast should be written in lower case. | format-laravelformat-psr12 | ✓!±— |
format/casts/no-short-bool | Short cast bool using double exclamation mark should not be used. | format-laravel | ✓!±— |
format/casts/no-unset | Variables must be set null instead of using (unset) casting. | format-laravel | ✓!±— |
format/casts/short-scalar | Cast (boolean) and (integer) should be written as (bool) and (int), (double) and (real) as (float), (binary) as (string). | format-laravelformat-psr12 | ✓!±— |
format/casts/spacing | A single space or none should be between cast and variable. | format-laravel | ✓!±— |
format/classes/definition | Whitespace around the keywords of a class, trait, enum or interfaces definition should be one space. | format-laravelformat-psr12 | ✓!±— |
format/classes/member-separation | Class, trait and interface elements must be separated with one or none blank line. | format-laravel | ✓!±— |
format/classes/modifier-keywords | Classes, 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-properties | Promoted properties must be on separate lines. | Opt-in | ✓!±— |
format/classes/no-blank-line-after-opening | There should be no empty lines after class opening brace. | format-laravelformat-psr12 | ✓!±— |
format/classes/ordered-interfaces | Orders the interfaces in an implements or interface extends clause. | format-laravel | ✓!±— |
format/classes/single-member-per-statement | There MUST NOT be more than one property or constant declared per statement. | format-laravelformat-psr12 | ✓!±— |
format/classes/single-trait-per-statement | Each trait use must be done as single statement. | format-psr12 | ✓!±— |
format/comments/align-multiline | Each line of multi-line DocComments must have an asterisk [PSR-5] and must be aligned with the first one. | Opt-in | ✓!±— |
format/comments/header | Add, replace or remove header comment. | Opt-in | ✓!±— |
format/comments/multiline-delimiters | DocBlocks 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-empty | There should not be any empty comments. | Opt-in | ✓!±— |
format/comments/no-trailing-whitespace | There must be no trailing whitespace at the end of lines in comments and PHPDocs. | format-laravelformat-psr12 | ✓!±— |
format/comments/single-line-spacing | Single-line comments must have proper spacing. | format-laravel | ✓!±— |
format/comments/single-line-style | Single-line comments and multi-line comments with only one line of actual content should use the // syntax. | format-laravel | ✓!±— |
format/control-flow/braces | The body of each control structure MUST be enclosed within braces. | format-laravelformat-psr12 | ✓!±— |
format/control-flow/continuation-position | Control structure continuation keyword must be on the configured line. | format-laravelformat-psr12 | ✓!±— |
format/control-flow/elseif | The 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-body | Empty loop-body must be in configured style. | Opt-in | ✓!±— |
format/control-flow/empty-loop-condition | Empty loop-condition must be in configured style. | Opt-in | ✓!±— |
format/control-flow/include | Include/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-syntax | Replace control structure alternative syntax to use braces. | format-laravel | ✓!±— |
format/control-flow/no-break-comment | There must be a comment when fall-through is intentional in a non-empty case body. | format-psr12 | ✓!±— |
format/control-flow/no-unneeded-braces | Removes unneeded braces that are superfluous and aren't part of a control structure's body. | format-laravel | ✓!±— |
format/control-flow/no-unneeded-parentheses | Removes unneeded parentheses around control statements. | format-laravel | ✓!±— |
format/control-flow/switch-case-colon | A case should be followed by a colon and not a semicolon. | format-laravelformat-psr12 | ✓!±— |
format/control-flow/switch-case-space | Removes extra spaces between colon and case value. | format-laravelformat-psr12 | ✓!±— |
format/control-flow/yoda | Write 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-spacing | In 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-exec | Converts backtick operators to shell_exec calls. | Opt-in | ✓!±— |
format/functions/chain-indentation | Method chaining MUST be properly indented. Method chaining with different levels of indentation is not supported. | format-laravel | ✓!±— |
format/functions/declaration | Spaces should be properly placed in a function declaration. | format-laravelformat-psr12 | ✓!±— |
format/functions/no-alias-construct-call | Master language constructs shall be used instead of aliases. | format-laravel | ✓!±— |
format/functions/no-space-after-name | When 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-spacing | Adjust spacing around colon in return type declarations and backed enum types. | format-laravelformat-psr12 | ✓!±— |
format/functions/single-line-throw | Throwing exception must be done in single line. | Opt-in | ✓!±— |
format/imports/blank-line-after | Each 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-namespace | There MUST be one blank line after the namespace declaration. | format-laravelformat-psr12 | ✓!±— |
format/imports/blank-line-between-groups | Putting blank lines between use statement groups. | format-laravelformat-psr12 | ✓!±— |
format/imports/blank-lines-before-namespace | Controls blank lines before a namespace declaration. | format-laravelformat-psr12 | ✓!±— |
format/imports/clean-namespace | Namespace must not contain spacing, comments or PHPDoc. | format-laravel | ✓!±— |
format/imports/fully-qualified-strict-types | Removes 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-namespace | Imports or fully qualifies global classes/functions/constants. | Opt-in | ✓!±— |
format/imports/group | There MUST be group use for the same namespaces. | Opt-in | ✓!±— |
format/imports/no-leading-namespace-whitespace | The namespace declaration line shouldn't contain leading whitespace. | format-laravel | ✓!±— |
format/imports/no-leading-slash | Remove leading slashes in use clauses. | format-laravelformat-psr12 | ✓!±— |
format/imports/no-unneeded-alias | Imports should not be aliased as the same name. | format-laravel | ✓!±— |
format/imports/ordered | Ordering use statements. | format-laravelformat-psr12 | ✓!±— |
format/imports/single-per-statement | There MUST be one use keyword per declaration. | format-laravelformat-psr12 | ✓!±— |
format/laravel/blade | Formats Blade templates (Pint 1.30, Prettier + prettier-plugin-blade). | Opt-in | ✓!±— |
format/operators/binary-spacing | Binary operators should be surrounded by space as configured. | format-laravelformat-psr12 | ✓!±— |
format/operators/concat-spacing | Concatenation should be spaced according to configuration. | format-laravel | ✓!±— |
format/operators/increment-style | Pre- or post-increment and decrement operators should be used if possible. | format-laravel | ✓!±— |
format/operators/linebreak | Operators - when multiline - must always be at the beginning or at the end of the line. | Opt-in | ✓!±— |
format/operators/new-expression-parentheses | All new expressions with a further call must (not) be wrapped in parentheses. | Opt-in | ✓!±— |
format/operators/new-parentheses | All instances created with new keyword must (not) be followed by parentheses. | format-laravelformat-psr12 | ✓!±— |
format/operators/no-space-around-arrow | There should not be space before or after object operators -> and ?->. | format-laravel | ✓!±— |
format/operators/no-space-around-double-colon | There must be no space around double colons (also called Scope Resolution Operator or Paamayim Nekudotayim). | format-laravelformat-psr12 | ✓!±— |
format/operators/no-useless-concat | There should not be useless concat operations. | Opt-in | ✓!±— |
format/operators/not-with-space | Logical NOT operators (!) should have leading and trailing whitespaces. | Opt-in | ✓!±— |
format/operators/not-with-successor-space | Logical NOT operators (!) should have one trailing whitespace. | format-laravel | ✓!±— |
format/operators/standardize-increment | Increment and decrement operators should be used if possible. | Opt-in | ✓!±— |
format/operators/standardize-not-equals | Replace all <> with !=. | format-laravel | ✓!±— |
format/operators/ternary-spacing | Standardize spaces around ternary operator. | format-laravelformat-psr12 | ✓!±— |
format/operators/unary-spacing | Unary operators should be placed adjacent to their operands. | format-laravelformat-psr12 | ✓!±— |
format/phpdoc/align | All items of the given PHPDoc tags must be either left-aligned or (by default) aligned vertically. | format-laravel | ✓!±— |
format/phpdoc/annotation-without-dot | PHPDoc annotation descriptions should not be a sentence. | Opt-in | ✓!±— |
format/phpdoc/indent | Docblocks should have the same indentation as the documented subject. | format-laravel | ✓!±— |
format/phpdoc/inline-tag | Fixes PHPDoc inline tags. | format-laravel | ✓!±— |
format/phpdoc/line-span | Changes doc blocks from single to multi line, or reversed. | Opt-in | ✓!±— |
format/phpdoc/no-alias-tag | No alias PHPDoc tags should be used. | Opt-in | ✓!±— |
format/phpdoc/no-blank-line-after | There should not be blank lines between docblock and the documented element. | format-laravel | ✓!±— |
format/phpdoc/no-duplicate-types | Removes duplicate PHPDoc types. | Opt-in | ✓!±— |
format/phpdoc/no-empty | There should not be empty PHPDoc blocks. | format-laravel | ✓!±— |
format/phpdoc/order | Annotations in PHPDoc should be ordered in defined sequence. | format-laravel | ✓!±— |
format/phpdoc/order-by-value | Order PHPDoc tags by value. | Opt-in | ✓!±— |
format/phpdoc/param-order | Orders all @param annotations in DocBlocks according to method signature. | Opt-in | ✓!±— |
format/phpdoc/return-self-reference | The type of @return annotations of methods returning a reference to itself must the configured one. | Opt-in | ✓!±— |
format/phpdoc/scalar | Scalar types should always be written in the same form. int not integer, bool not boolean, float not real or double. | format-laravel | ✓!±— |
format/phpdoc/separation | Annotations 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-spacing | Single line @var PHPDoc should have proper spacing. | format-laravel | ✓!±— |
format/phpdoc/summary | PHPDoc summary should end in either a full stop, exclamation mark, or question mark. | Opt-in | ✓!±— |
format/phpdoc/tag-casing | Fixes casing of PHPDoc tags. | Opt-in | ✓!±— |
format/phpdoc/tag-type | Forces PHPDoc tags to be either regular annotations or inline. | format-laravel | ✓!±— |
format/phpdoc/trim | PHPDoc should start and end with content, excluding the very first and last line of the docblocks. | format-laravel | ✓!±— |
format/phpdoc/trim-blank-lines | Removes extra blank lines after summary and after description in PHPDoc. | Opt-in | ✓!±— |
format/phpdoc/types | The correct case must be used for standard PHP types in PHPDoc. | format-laravel | ✓!±— |
format/phpdoc/types-order | Sorts 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-annotation | PHPUnit annotations should be a FQCNs including a root namespace. | Opt-in | ✓!±— |
format/statements/blank-line-before | An empty line feed must precede any configured statement. | format-laravel | ✓!±— |
format/statements/braces-position | Braces must be placed as configured. | format-laravelformat-psr12 | ✓!±— |
format/statements/declare-equal | Equal sign in declare statement should be surrounded by spaces or not following configuration. | format-laravelformat-psr12 | ✓!±— |
format/statements/declare-parentheses | There must not be spaces around declare statement parentheses. | format-laravel | ✓!±— |
format/statements/explicit-indirect-variable | Add curly braces to indirect variables to make them clear to understand. | Opt-in | ✓!±— |
format/statements/multiline-semicolon | Forbid 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-print | Either language construct print or echo should be used. | format-laravel | ✓!±— |
format/statements/no-space-before-semicolon | Single-line whitespace before closing semicolon are prohibited. | format-laravel | ✓!±— |
format/statements/numeric-literal-separator | Adds separators to numeric literals of any kind. | Opt-in | ✓!±— |
format/statements/octal-notation | Literal octal must be in 0o notation. | Opt-in | ✓!±— |
format/statements/one-per-line | There must not be more than one statement per line. | format-laravelformat-psr12 | ✓!±— |
format/statements/semicolon-after-instruction | Instructions must be terminated with a semicolon. | Opt-in | ✓!±— |
format/statements/single-line-empty-body | Empty 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-semicolon | Fix whitespace after a semicolon. | format-laravel | ✓!±— |
format/statements/space-around-construct | Ensures a single space after language constructs. | format-laravelformat-psr12 | ✓!±— |
format/strings/complex-variable | Converts explicit variables in double-quoted strings and heredoc syntax from simple to complex format (${ to {$). | Opt-in | ✓!±— |
format/strings/explicit-variable | Converts implicit variables into explicit ones in double-quoted strings or heredoc syntax. | Opt-in | ✓!±— |
format/strings/heredoc-closing-marker | Unify heredoc or nowdoc closing marker. | Opt-in | ✓!±— |
format/strings/heredoc-indentation | Heredoc/nowdoc content must be properly indented. | Opt-in | ✓!±— |
format/strings/heredoc-to-nowdoc | Convert heredoc to nowdoc where possible. | format-laravel | ✓!±— |
format/strings/implicit-backslashes | Handles 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-heredoc | Convert multiline string to heredoc or nowdoc. | Opt-in | ✓!±— |
format/strings/no-binary | There should not be a binary flag before strings. | format-laravel | ✓!±— |
format/strings/single-quote | Convert double quotes to single quotes for simple strings. | format-laravel | ✓!±— |
format/tags/blank-line-after-opening | Ensure 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-syntax | Replaces short-echo <?= with long format <?php echo/<?php print syntax, or vice-versa. | Opt-in | ✓!±— |
format/tags/full-opening | PHP code must use the long <?php tags or short-echo <?= tags and not other tag variations. | format-laravelformat-psr12 | ✓!±— |
format/tags/linebreak-after-opening | Ensure there is no code on the same line as the PHP open tag. | format-laravel | ✓!±— |
format/tags/no-closing | The closing ?> tag MUST be omitted from files containing only PHP. | format-laravelformat-psr12 | ✓!±— |
format/types/compact-nullable | Remove extra spaces in a nullable type declaration. | format-laravelformat-psr12 | ✓!±— |
format/types/declaration-spacing | Ensure single space between a variable and its type declaration in function arguments and properties. | format-laravel | ✓!±— |
format/types/nullable-for-null-default | Adds 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-syntax | Nullable single type declaration should be standardised using configured syntax. | format-laravel | ✓!±— |
format/types/ordered | Sort union types and intersection types using configured order. | Opt-in | ✓!±— |
format/types/union-spacing | A single space or none should be around union type and intersection type operators. | format-laravel | ✓!±— |
format/whitespace/encoding | PHP code MUST use only UTF-8 without BOM (remove BOM). | format-laravelformat-psr12 | ✓!±— |
format/whitespace/final-newline | A PHP file without end tag must always end with a single empty line feed. | format-laravelformat-psr12 | ✓!±— |
format/whitespace/indentation-type | Code MUST use configured indentation type. | format-laravelformat-psr12 | ✓!±— |
format/whitespace/inside-parentheses | Parentheses must be declared using the configured whitespace. | format-laravelformat-psr12 | ✓!±— |
format/whitespace/line-ending | All PHP files must use same line ending. | format-laravelformat-psr12 | ✓!±— |
format/whitespace/no-blank-line-whitespace | Remove trailing whitespace at the end of blank lines. | format-laravelformat-psr12 | ✓!±— |
format/whitespace/no-extra-blank-lines | Removes extra blank lines and/or blank lines following configuration. | format-laravelformat-psr12 | ✓!±— |
format/whitespace/no-trailing | There must be no trailing whitespace at the end of non-blank lines. | format-laravelformat-psr12 | ✓!±— |
format/whitespace/statement-indentation | Each statement must be indented. | format-laravelformat-psr12 | ✓!±— |
lint/arrays/no-implicit-array-creation | Disallows implicit array creation: appending to or writing an offset of an undefined or null variable. | code-quality | ✓!±— |
lint/arrays/prefer-array-spread | Detects calls to array_merge() and suggests using the array spread operator (...) in an array literal instead. | modernize | ✓!±— |
lint/classes/add-stringable | A class that implements the __toString() method must explicitly implement the Stringable interface. | modernize | ✓!±— |
lint/classes/no-explicit-constructor-call | Disallows calling __construct() on an existing object outside a constructor. | code-quality | ✓!±— |
lint/classes/no-null-property-default | Properties 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-final | Change protected constant to private if possible | privatization | ✓!±— |
lint/classes/no-protected-in-final | Converts protected variables and methods to private where possible. | privatization | ✓!±— |
lint/classes/no-protected-method-in-final | Change protected class method to private if possible | privatization | ✓!±— |
lint/classes/no-protected-property-in-final | Change property to private if possible | privatization | ✓!±— |
lint/classes/no-redundant-readonly | Removes redundant readonly from properties in readonly classes. | dead-code | ✓!±— |
lint/classes/no-static-constructor-call | Disallows calling a constructor statically (Foo::__construct()) outside a child class's constructor. | code-quality | ✓!±— |
lint/classes/no-underscore-class | Detects class, interface, trait, or enum declarations named _. | modernize | ✓!±— |
lint/classes/no-unset-on-property | Properties should be set to null instead of using unset. | code-quality | ✓!±— |
lint/classes/prefer-new-self | Change new static() to new self() in a final class | code-quality | ✓!±— |
lint/classes/prefer-self-in-final | Inside an enum or final/anonymous class, self should be preferred over static. | modernizecode-quality | ✓!±— |
lint/classes/require-class-matches-file | Classes 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-order | Orders the elements of classes/interfaces/traits/enums. | coding-style | ✓!±— |
lint/comments/no-unused-ignore | A @pun-ignore comment that suppressed nothing. Fix removes it. | code-quality | ✓!±— |
lint/complexity/no-and-assignment | Split 2 assigns with "and" to separate lines | code-quality | ✓!±— |
lint/complexity/no-boolean-flag-parameter | Flags function-like parameters that use a boolean type and drive the function's behaviour. | Opt-in | ✓!±— |
lint/complexity/no-compact | Change compact() call to own array | code-quality | ✓!±— |
lint/complexity/no-concat-assign-new-item | Change concat assign on a new array item to plain assign, as the new item is always null | code-quality | ✓!±— |
lint/complexity/no-constant-condition | Detects if statements where the condition is a constant that always | dead-code | ✓!±— |
lint/complexity/no-constant-via-variable | Change variable class constant fetch to direct class constant fetch when class or constant target is final | code-quality | ✓!±— |
lint/complexity/no-dirname-dir-concat | Change dirname() and string concat, to __DIR__ and direct string path | code-quality | ✓!±— |
lint/complexity/no-duplicate-match-arm | Detects match arms that produce the same result as an earlier arm. | code-quality | ✓!±— |
lint/complexity/no-else-clause | Flags if statements that include an else or elseif branch. | Opt-in | ✓!±— |
lint/complexity/no-empty-file | Detects redundant files that contain no executable code or declarations. | Opt-in | ✓!±— |
lint/complexity/no-excessive-cyclomatic | Checks the cyclomatic complexity of classes, traits, enums, interfaces, functions, and closures. | Opt-in | ✓!±— |
lint/complexity/no-excessive-enum-cases | Detects enums with too many cases. | Opt-in | ✓!±— |
lint/complexity/no-excessive-halstead | Computes Halstead metrics (volume, difficulty, effort) and reports if they exceed configured thresholds. | Opt-in | ✓!±— |
lint/complexity/no-excessive-kan-defect | Detects classes, traits, interfaces, functions, and closures with high kan defect. | Opt-in | ✓!±— |
lint/complexity/no-excessive-methods | Detects class-like structures with too many methods. | Opt-in | ✓!±— |
lint/complexity/no-excessive-nesting | Checks if the nesting level in any block exceeds a configurable threshold. | Opt-in | ✓!±— |
lint/complexity/no-excessive-parameters | Detects functions, closures, and methods with too many parameters. | Opt-in | ✓!±— |
lint/complexity/no-excessive-properties | Detects class-like structures with too many properties. | Opt-in | ✓!±— |
lint/complexity/no-goto | Detects the use of goto statements and labels. | Opt-in | ✓!±— |
lint/complexity/no-iterator-to-array-in-foreach | Detects iterator_to_array() calls used directly as a foreach expression. | code-quality | ✓!±— |
lint/complexity/no-negated-boolean-literal | Replace negated boolean literals (!false, !true) with their simplified equivalents (true, false) | code-quality | ✓!±— |
lint/complexity/no-negated-group | Simplify negated conditions with de Morgan theorem | code-quality | ✓!±— |
lint/complexity/no-negated-instanceof-ternary | Flip negated ternary of instanceof to direct use of object | code-quality | ✓!±— |
lint/complexity/no-phpdoc-class-case-mismatch | Fix a misspelled class name casing in a @var docblock to match the real class name | code-quality | ✓!±— |
lint/complexity/no-redundant-isset | Detects redundant arguments in isset() calls where a nested access already implies the parent checks. | code-quality | ✓!±— |
lint/complexity/no-redundant-literal-return | Detects 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-check | Return the value directly instead of checking it for null first. | code-quality | ✓!±— |
lint/complexity/no-redundant-nullsafe | Flags the use of the nullsafe operator (?->) in contexts where its null-checking behavior is redundant. | code-quality | ✓!±— |
lint/complexity/no-redundant-write-visibility | Detects redundant write visibility modifiers on properties. | code-quality | ✓!±— |
lint/complexity/no-single-case-switch | Change switch with only 1 check to if | code-quality | ✓!±— |
lint/complexity/no-single-item-in-array | Changes in_array() with single element to === | code-quality | ✓!±— |
lint/complexity/no-sole-value-sprintf | Remove sprintf() wrapper if not needed | code-quality | ✓!±— |
lint/complexity/no-unused-label | Detects redundant goto labels that are declared but not used. | code-quality | ✓!±— |
lint/complexity/no-useless-array-values | Removes unneeded array_values() in in_array() call | code-quality | ✓!±— |
lint/complexity/prefer-absolute-include | Migrate 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-literal | Change array_merge of non arrays to array directly | code-quality | ✓!±— |
lint/complexity/prefer-coalesce-over-empty-ternary | Change ternary empty on array property with array dim fetch to coalesce operator | code-quality | ✓!±— |
lint/complexity/prefer-empty-array-compare | Compare with [] instead of empty()/is_array() on arrays. | code-quality | ✓!±— |
lint/complexity/prefer-explicit-array-comparison | Make array if conditions more explicit | code-quality | ✓!±— |
lint/complexity/prefer-func-num-args | Simplify count of func_get_args() to func_num_args() | code-quality | ✓!±— |
lint/complexity/prefer-if-statement | Change inline if to explicit if | code-quality | ✓!±— |
lint/complexity/prefer-in-array | Use in_array() instead of repeated ||/&& comparisons, array_search() checks and foreach loops. | code-quality | ✓!±— |
lint/complexity/prefer-inline-array-return | Inline just in time array dim fetch assigns to direct return | code-quality | ✓!±— |
lint/complexity/prefer-instance-method | Change static method and local-only calls to non-static | code-quality | ✓!±— |
lint/complexity/prefer-min-max | Change ternary number compare to max() call | code-quality | ✓!±— |
lint/complexity/prefer-named-literal-argument | Name literal arguments (true, false, null, numbers) in calls. | Opt-in | ✓!±— |
lint/complexity/prefer-not-in-array | Use ! in_array() instead of repeated !==/!= comparisons of one value joined by &&. | code-quality | ✓!±— |
lint/complexity/prefer-null-coalesce | Use ?? instead of isset()/array_key_exists() ternaries, if/return chains and foreach lookups. | code-quality | ✓!±— |
lint/complexity/prefer-property-default | Move property default from constructor to property default | code-quality | ✓!±— |
lint/complexity/prefer-property-exists | Use property_exists() instead of array_key_exists() or isset() on object properties. | code-quality | ✓!±— |
lint/complexity/prefer-simple-condition | Simplify a negated comparison or a comparison with a boolean | code-qualitydead-code | ✓!±— |
lint/complexity/require-attribute-argument-order | Sort named arguments in PHP 8 attributes to match their declaration order | code-quality | ✓!±— |
lint/complexity/require-consistent-return | Add explicit return null to method/function that returns a value, but missed main return | code-quality | ✓!±— |
lint/complexity/require-is-a-allow-string | Complete missing 3rd argument in case is_a() function in case of strings | code-quality | ✓!±— |
lint/complexity/require-named-argument-order | Order named arguments as the parameters are declared. | code-quality | ✓!±— |
lint/complexity/require-previous-exception | When throwing into a catch block, checks that the previous exception is passed to the new throw clause | code-quality | ✓!±— |
lint/control-flow/no-assign-in-condition | Detects assignments in conditions which can lead to unexpected behavior and make the code harder | code-quality | ✓!±— |
lint/control-flow/no-else-after-return | Drop 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-catch | Report an empty catch block, which swallows the exception. | code-quality | ✓!±— |
lint/control-flow/no-for-init-overwrite | Disallows a for loop's init expression overwriting a variable that is already defined. | code-quality | ✓!±— |
lint/control-flow/no-loop-variable-overwrite | Disallows a foreach key or value variable overwriting a variable that is already defined. | code-quality | ✓!±— |
lint/control-flow/no-return-assignment | Local, dynamic and directly referenced variables should not be assigned and directly returned by a function or method. | dead-code | ✓!±— |
lint/control-flow/no-superfluous-elseif | Replaces superfluous elseif with if. | dead-code | ✓!±— |
lint/control-flow/no-switch-continue | Switch case must not be ended with continue but with break. | modernize | ✓!±— |
lint/control-flow/no-unsafe-finally | Detects control flow statements in finally blocks. | code-quality | ✓!±— |
lint/control-flow/no-useless-else | There should not be useless else cases. | early-return | ✓!±— |
lint/control-flow/no-useless-return | There should not be an empty return statement at the end of a function. | dead-code | ✓!±— |
lint/control-flow/prefer-bare-return | A return statement wishing to return void should not return null. | Opt-in | ✓!±— |
lint/control-flow/prefer-bool-return | Simplify if control structures that return the boolean result of their condition. | code-quality | ✓!±— |
lint/control-flow/prefer-combined-isset | Using isset($var) && multiple times should be done in one call. | code-quality | ✓!±— |
lint/control-flow/prefer-combined-unset | Calling unset on multiple items should be done in one call. | code-quality | ✓!±— |
lint/control-flow/prefer-yield-from | If 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-condition | Reduce always false in a if (a || b) condition | dead-code | ✓!±— |
lint/dead-code/no-always-true-if | Remove if condition that is always true | dead-code | ✓!±— |
lint/dead-code/no-always-true-instanceof | Remove instanceof checks and assert(instanceof) calls that are always true for the known type. | dead-code | ✓!±— |
lint/dead-code/no-and-true | Remove and true that has no added value | dead-code | ✓!±— |
lint/dead-code/no-cast-in-concat | Remove (string) casting when it comes to concat, that does this by default | dead-code | ✓!±— |
lint/dead-code/no-condition-exact-return | Remove an if that returns the value it compares when the next statement returns the compared expression. | dead-code | ✓!±— |
lint/dead-code/no-dead-catch | Remove dead catches | dead-code | ✓!±— |
lint/dead-code/no-dead-php-version-check | Remove PHP_VERSION_ID / version_compare() checks that are always true for the configured PHP version. | dead-code | ✓!±— |
lint/dead-code/no-double-self-assignment | Remove duplicated self assign of the same variable | dead-code | ✓!±— |
lint/dead-code/no-duplicate-array-key | Remove duplicated key in defined arrays | dead-code | ✓!±— |
lint/dead-code/no-duplicate-case-body | 2 following switch keys with identical will be reduced to one result | dead-code | ✓!±— |
lint/dead-code/no-empty-block | Remove or report if/for/foreach/while statements with an empty body. | dead-code | ✓!±— |
lint/dead-code/no-empty-method | Remove empty class methods not required by parents | dead-code | ✓!±— |
lint/dead-code/no-false-ternary | Change ternary of bool : false to && bool | dead-code | ✓!±— |
lint/dead-code/no-future-php-version-check | Unwrap if checks on a PHP version that the configured PHP version always meets. | dead-code | ✓!±— |
lint/dead-code/no-identical-branches | Remove if/else if they have same content | dead-code | ✓!±— |
lint/dead-code/no-implode-ternary | Drop an empty-array ternary around implode() | code-quality | ✓!±— |
lint/dead-code/no-invalid-return-tag | Remove @return docblock that contradicts the declared native return type | dead-code | ✓!±— |
lint/dead-code/no-invalid-var-tag | Removes non-existing @var annotations above the code | dead-code | ✓!±— |
lint/dead-code/no-null-tag-value | Remove @var/@param/@return null docblock | dead-code | ✓!±— |
lint/dead-code/no-overridden-assign-before-if | Remove assign before if/else that overrides the variable in both branches | dead-code | ✓!±— |
lint/dead-code/no-parent-call-without-parent | Remove unused parent call with no parent class | dead-code | ✓!±— |
lint/dead-code/no-redundant-condition | Merge an if into the if before it when both check the same condition. | dead-code | ✓!±— |
lint/dead-code/no-redundant-default-argument | Remove arguments that equal the parameter default value. | dead-code | ✓!±— |
lint/dead-code/no-redundant-foreach-guard | Remove unused if check to non-empty array before foreach of the array | dead-code | ✓!±— |
lint/dead-code/no-redundant-promoted-assign | Remove useless re-assign from property promotion | dead-code | ✓!±— |
lint/dead-code/no-redundant-property-default | Remove redundant default value from property that is always assigned in the constructor | dead-code | ✓!±— |
lint/dead-code/no-redundant-type-check | Remove is_<type>() check that can never fail on already known type | dead-code | ✓!±— |
lint/dead-code/no-return-in-constructor | Remove useless return Expr in __construct() | dead-code | ✓!±— |
lint/dead-code/no-self-assignment | Detects and removes self-assignments where a variable or property is assigned to itself. | dead-code | ✓!±— |
lint/dead-code/no-typed-property-instanceof | Remove dead instanceof check on type hinted property | dead-code | ✓!±— |
lint/dead-code/no-unreachable-code | Remove unreachable statements | dead-code | ✓!±— |
lint/dead-code/no-unused-assignment | Remove assignments whose value is never read, including stores overwritten before use. | dead-code | ✓!±— |
lint/dead-code/no-unused-constructor-param | Remove unused parameter in constructor | dead-code | ✓!±— |
lint/dead-code/no-unused-expression | Remove dead code statements | dead-code | ✓!±— |
lint/dead-code/no-unused-foreach-key | Remove unused key in foreach | dead-code | ✓!±— |
lint/dead-code/no-unused-global | Flags global $x; declarations whose name is never read or written | code-quality | ✓!±— |
lint/dead-code/no-unused-private-constant | Remove unused class constants | dead-code | ✓!±— |
lint/dead-code/no-unused-private-method | Remove unused private method | dead-code | ✓!±— |
lint/dead-code/no-unused-private-method-param | Remove unused parameters of private methods, including test-method parameters overwritten before use. | dead-code | ✓!±— |
lint/dead-code/no-unused-private-property | Remove unused private properties | dead-code | ✓!±— |
lint/dead-code/no-unused-promoted-property | Remove unused promoted property | dead-code | ✓!±— |
lint/dead-code/no-unused-public-method-param | Remove unused parameter in public method on final class without extends and interface | dead-code | ✓!±— |
lint/dead-code/no-unused-return-type | Narrow overly wide union return type declaration if possible | dead-code | ✓!±— |
lint/dead-code/no-unused-return-value | Detects private methods whose return value is thrown away at every call site. | dead-code | ✓!±— |
lint/dead-code/no-unused-static | Flags static $x; declarations whose name is never read or written | code-quality | ✓!±— |
lint/dead-code/no-useless-cast | Remove casts to the type the value already has, including (string) inside concatenation. | dead-code | ✓!±— |
lint/dead-code/no-useless-catch | Remove dead try/catch | dead-code | ✓!±— |
lint/dead-code/no-useless-condition | Remove if conditions whose branches return the same value. | dead-code | ✓!±— |
lint/dead-code/no-useless-continue | Remove continue as the last statement of a loop. | dead-code | ✓!±— |
lint/dead-code/no-useless-filter-var | Removes filter_var() calls with exact type | dead-code | ✓!±— |
lint/dead-code/no-useless-math | Remove arithmetic that does not change the value (+ 0, * 1, ...). | dead-code | ✓!±— |
lint/dead-code/no-useless-override | Remove methods and constructors that only call the parent with the same arguments. | dead-code | ✓!±— |
lint/dead-code/no-useless-phpdoc-type | Remove 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-ternary | Simplify ternaries whose result does not depend on the condition, or that equal a boolean expression. | dead-codecode-quality | ✓!±— |
lint/functions/no-assign-in-argument | Detects assignments in function call arguments which can lead to unexpected behavior and make | code-quality | ✓!±— |
lint/functions/no-call-user-func-method | Refactor call_user_func() on known class method to a method call | coding-style | ✓!±— |
lint/functions/no-extra-arguments | Remove extra parameters | code-quality | ✓!±— |
lint/functions/no-missing-format-argument | Detects sprintf-style format calls where the number of placeholders | code-quality | ✓!±— |
lint/functions/no-required-after-optional | Report or fix optional parameters declared before required ones. | code-quality | ✓!±— |
lint/functions/no-swapped-explode-arguments | Detects explode calls whose arguments appear to be swapped. | code-quality | ✓!±— |
lint/functions/no-unreachable-default-argument-value | In function arguments there must not be arguments with default values before non-default ones. | code-quality | ✓!±— |
lint/functions/no-unused-closure-use | Lambda must not import variables it doesn't use. | dead-code | ✓!±— |
lint/functions/no-void-reference-return | Detects functions, methods, closures, arrow functions, and set property hooks that return by reference from a void function. | modernize | ✓!±— |
lint/functions/require-array-filter-callback | Requires a callback for array_filter(): without one it drops every falsy value, not only null. | code-quality | ✓!±— |
lint/functions/require-assert-description | Detects assert functions that do not have a description. | Opt-in | ✓!±— |
lint/functions/require-strict-array-search | Makes array_search search for identical elements | coding-style | ✓!±— |
lint/functions/require-strict-function-call | Requires the strict flag of in_array(), array_search(), array_keys() with a search value and base64_decode(). | coding-style | ✓!±— |
lint/functions/require-strict-in-array | Set in_array strict to true when defined on similar type | coding-style | ✓!±— |
lint/imports/no-unused | Unused use statements must be removed. | dead-code | ✓!±— |
lint/laravel-12/prefer-scope-attribute | Changes model scope methods to use the scope attribute | Opt-in | ✓!±— |
lint/laravel/add-factory-extends-phpdoc | Adds the @extends annotation to Factories. | Opt-in | ✓!±— |
lint/laravel/add-has-factory-trait | Adds the HasFactory trait to Models. | Opt-in | ✓!±— |
lint/laravel/add-legacy-relation-genericsPlanned | Add generic return type to relations in child of Illuminate\Database\Eloquent\Model | types | ✓!±— |
lint/laravel/add-new-relation-genericsPlanned | Add generic return type to relations in child of Illuminate\Database\Eloquent\Model | types | ✓!±— |
lint/laravel/add-query-closure-type | Type-hint the closure parameter of Eloquent where()/whereHas() and similar query methods. | types | ✓!±— |
lint/laravel/add-relation-generics | Add generic return type to relations in child of Illuminate\Database\Eloquent\Model | types | ✓!±— |
lint/laravel/add-relation-query-closure-type | Add type hinting to where relation has methods e.g. whereHas, orWhereHas, whereDoesntHave, orWhereDoesntHave, whereHasMorph, orWhereHasMorph, whereDoesntHaveMorph, orWhereDoesntHaveMorph | types | ✓!±— |
lint/laravel/add-scope-builder-genericsPlanned | Add generic Builder return type to scopes in child of Illuminate\Database\Eloquent\Model | types | ✓!±— |
lint/laravel/add-tap-closure-type | Automatically type hints your tappable closures | types | ✓!±— |
lint/laravel/no-app-array-access | Replace magical call on $this->app["something"] to standalone type assign variable | code-quality | ✓!±— |
lint/laravel/no-collection-aliases | Use the base collection methods instead of their aliases. | code-quality | ✓!±— |
lint/laravel/no-controller-middleware | This rule warns against applying middlewares in controllers. | Opt-in | ✓!±— |
lint/laravel/no-default-authorizePlanned | Remove the authorize() method from FormRequest classes when it only returns true, as passesAuthorization() defaults to true when the method does not exist | code-quality | ✓!±— |
lint/laravel/no-implicit-model-query | Start Eloquent queries with Model::query() instead of static magic calls. | code-quality | ✓!±— |
lint/laravel/no-negated-blank-filled | Swap the use of NotBooleans used with filled() and blank() to the correct helper. | code-quality | ✓!±— |
lint/laravel/no-negated-contains | Convert negated calls to contains to doesntContain, or vice versa. | code-quality | ✓!±— |
lint/laravel/no-negated-filter | Avoid negated conditionals in filter() by using reject(), or vice versa. | code-quality | ✓!±— |
lint/laravel/no-negated-when | Reverse conditionable method calls | code-quality | ✓!±— |
lint/laravel/no-request-all | Detects the use of $request->all() or Request::all() in Laravel applications. | code-quality | ✓!±— |
lint/laravel/no-useless-value-call | Removes redundant value helper calls | code-quality | ✓!±— |
lint/laravel/no-useless-with-call | Removes redundant with helper calls | code-quality | ✓!±— |
lint/laravel/prefer-abort-if | Change if abort to abort_if | Opt-in | ✓!±— |
lint/laravel/prefer-aliases-attribute | Changes the aliases property to use the Aliases attribute | Opt-in | ✓!±— |
lint/laravel/prefer-anonymous-migration | Prefer using anonymous classes for Laravel migrations instead of named classes. | code-quality | ✓!±— |
lint/laravel/prefer-appends-attribute | Changes model appends property to use the appends attribute | Opt-in | ✓!±— |
lint/laravel/prefer-array-validation-rules | Use array syntax for validation rules instead of 'a|b' strings. | code-quality | ✓!±— |
lint/laravel/prefer-back-helper | Replace redirect()->back() and Redirect::back() with back() | code-quality | ✓!±— |
lint/laravel/prefer-backoff-attribute | Changes the backoff property to use the Backoff attribute | Opt-in | ✓!±— |
lint/laravel/prefer-casts-method | Detects the $casts property on an Eloquent model. Laravel 11 introduced the casts() | coding-style | ✓!±— |
lint/laravel/prefer-class-container-key | Changes the string or class const used for a service container make call | Opt-in | ✓!±— |
lint/laravel/prefer-closure-only-bind | Drop 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-attribute | Changes model newCollection method to use the CollectedBy attribute | Opt-in | ✓!±— |
lint/laravel/prefer-collection-all | Convert toArray() to all() when the collection does not contain any Arrayable objects. | code-quality | ✓!±— |
lint/laravel/prefer-collection-is-emptyPlanned | Convert collection count() comparisons against 0 or 1 to isEmpty() or isNotEmpty() | code-quality | ✓!±— |
lint/laravel/prefer-collects-attribute | Changes the collects property to use the Collects attribute | Opt-in | ✓!±— |
lint/laravel/prefer-command-hidden-attribute | Changes the hidden property to use the Hidden attribute on console commands | Opt-in | ✓!±— |
lint/laravel/prefer-connection-attribute | Changes model connection property to use the Connection attribute | Opt-in | ✓!±— |
lint/laravel/prefer-constructor-injection | Move help facade-like function calls to constructor injection | Opt-in | ✓!±— |
lint/laravel/prefer-container-method-callPlanned | Change array access on the container to the matching method call, as the contract does not extend ArrayAccess | Opt-in | ✓!±— |
lint/laravel/prefer-date-facade | Refactor Carbon static method calls to use the Date facade instead. | code-quality | ✓!±— |
lint/laravel/prefer-date-format-attribute | Changes model dateFormat property to use the DateFormat attribute | Opt-in | ✓!±— |
lint/laravel/prefer-dedicated-status-assertion | Use assertOk(), assertNotFound() and similar instead of assertStatus(200). | code-quality | ✓!±— |
lint/laravel/prefer-default-argument | Apply default instead of null coalesce | code-quality | ✓!±— |
lint/laravel/prefer-delay-attribute | Changes the delay property to use the Delay attribute | Opt-in | ✓!±— |
lint/laravel/prefer-delete-when-missing-models-attribute | Changes the deleteWhenMissingModels property to use the DeleteWhenMissingModels attribute | Opt-in | ✓!±— |
lint/laravel/prefer-description-attribute | Changes the description property to use the Description attribute | Opt-in | ✓!±— |
lint/laravel/prefer-dispatch-helper | Use the event or dispatch helpers instead of the static dispatch method. | code-quality | ✓!±— |
lint/laravel/prefer-env-helper | Change env variable to env static call | code-quality | ✓!±— |
lint/laravel/prefer-environment-check | Replace app environment comparison with parameter or method call | code-quality | ✓!±— |
lint/laravel/prefer-error-bag-attribute | Changes the errorBag property to use the ErrorBag attribute | Opt-in | ✓!±— |
lint/laravel/prefer-exception-class-string | changes use of a new throw instance to class string | code-quality | ✓!±— |
lint/laravel/prefer-explicit-json-call | Change method calls from $this->json to $this->postJson, $this->putJson, etc. | code-quality | ✓!±— |
lint/laravel/prefer-facade-over-app | Change app() func calls to facade calls | Opt-in | ✓!±— |
lint/laravel/prefer-fail-on-timeout-attribute | Changes the failOnTimeout property to use the FailOnTimeout attribute | Opt-in | ✓!±— |
lint/laravel/prefer-fake-helper | Use the fake() helper instead of $this->faker. | code-quality | ✓!±— |
lint/laravel/prefer-file-facade-deletePlanned | Use the File facade instead of the unlink() function. | code-quality | ✓!±— |
lint/laravel/prefer-fillable-attribute | Changes model fillable property to use the fillable attribute | Opt-in | ✓!±— |
lint/laravel/prefer-guarded-attribute | Changes model guarded property to use the guarded attribute | Opt-in | ✓!±— |
lint/laravel/prefer-help-attribute | Changes the help property to use the Help attribute | Opt-in | ✓!±— |
lint/laravel/prefer-hidden-attribute | Changes model hidden property to use the hidden attribute | Opt-in | ✓!±— |
lint/laravel/prefer-job-connection-attribute | Changes the connection property to use the Connection attribute on queue jobs | Opt-in | ✓!±— |
lint/laravel/prefer-latest-oldest | Changes orderBy() to latest() or oldest() | code-quality | ✓!±— |
lint/laravel/prefer-max-exceptions-attribute | Changes the maxExceptions property to use the MaxExceptions attribute | Opt-in | ✓!±— |
lint/laravel/prefer-nullsafe | Convert simple calls to optional helper to use the nullsafe operator | code-quality | ✓!±— |
lint/laravel/prefer-pivot-classPlanned | Changes the pivot table name of a many to many relation to the pivot model class. | code-quality | ✓!±— |
lint/laravel/prefer-preserve-keys-attribute | Changes the preserveKeys property to use the PreserveKeys attribute | Opt-in | ✓!±— |
lint/laravel/prefer-protected-model-methods | Makes Model attributes and scopes protected | code-quality | ✓!±— |
lint/laravel/prefer-queue-attribute | Changes the queue property to use the Queue attribute | Opt-in | ✓!±— |
lint/laravel/prefer-report-if | Change if report to report_if | Opt-in | ✓!±— |
lint/laravel/prefer-repository-method-callPlanned | Change array access on a config or cache repository to the matching method call, as the contracts do not extend ArrayAccess | Opt-in | ✓!±— |
lint/laravel/prefer-request-facade | Use the Request facade instead of $_GET, $_POST and $_SERVER. | code-quality | ✓!±— |
lint/laravel/prefer-request-server | Change server variable to Request facade's server method | code-quality | ✓!±— |
lint/laravel/prefer-request-validate | Change 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-helper | Convert app() to resolve() where applicable. | code-quality | ✓!±— |
lint/laravel/prefer-route-key-attributePlanned | Changes model getRouteKeyName() method to use the RouteKey attribute | Opt-in | ✓!±— |
lint/laravel/prefer-session-facade | Change PHP session usage to Session Facade methods | code-quality | ✓!±— |
lint/laravel/prefer-signature-attribute | Changes the signature property to use the Signature attribute | Opt-in | ✓!±— |
lint/laravel/prefer-sleep-facade | Use Sleep::sleep() and Sleep::usleep() instead of the sleep() and usleep() function. | code-quality | ✓!±— |
lint/laravel/prefer-stop-on-first-failure-attribute | Changes the stopOnFirstFailure property to use the StopOnFirstFailure attribute | Opt-in | ✓!±— |
lint/laravel/prefer-str-starts-with | Use Str::startsWith() or Str::endsWith() instead of substr() === $str | code-quality | ✓!±— |
lint/laravel/prefer-table-attribute | Changes model table-related properties to use the Table attribute | Opt-in | ✓!±— |
lint/laravel/prefer-throw-if | Change if throw to throw_if | Opt-in | ✓!±— |
lint/laravel/prefer-timeout-attribute | Changes the timeout property to use the Timeout attribute | Opt-in | ✓!±— |
lint/laravel/prefer-to-route-helper | Replace redirect()->route("home") and Redirect::route("home") with to_route("home") | code-quality | ✓!±— |
lint/laravel/prefer-today | Use today() instead of now()->startOfDay() | code-quality | ✓!±— |
lint/laravel/prefer-touches-attribute | Changes model touches property to use the touches attribute | Opt-in | ✓!±— |
lint/laravel/prefer-travel-to | Use the $this->travelTo() method in Laravel's TestCase class instead of the Carbon::setTestNow() method. | code-quality | ✓!±— |
lint/laravel/prefer-tries-attribute | Changes the tries property to use the Tries attribute | Opt-in | ✓!±— |
lint/laravel/prefer-typed-assert-closure | Changes assert calls to use a type hinted closure. | code-quality | ✓!±— |
lint/laravel/prefer-unguarded-attributePlanned | Changes model empty guarded property to use the Unguarded attribute | Opt-in | ✓!±— |
lint/laravel/prefer-unique-for-attribute | Changes the uniqueFor property to use the UniqueFor attribute | Opt-in | ✓!±— |
lint/laravel/prefer-view-array | Prefer passing data to views using the array parameter in the view() function, | Opt-in | ✓!±— |
lint/laravel/prefer-visible-attribute | Changes model visible property to use the Visible attribute | Opt-in | ✓!±— |
lint/laravel/prefer-without-incrementing-attribute | Changes model incrementing = false property to use the WithoutIncrementing attribute | Opt-in | ✓!±— |
lint/laravel/prefer-without-timestamps-attribute | Changes model timestamps = false property to use the WithoutTimestamps attribute | Opt-in | ✓!±— |
lint/laravel/require-final-controller | Enforces that controller classes are declared as final. | Opt-in | ✓!±— |
lint/laravel/require-phpdoc-types-only | Keeps only type annotations in PHPDoc. | Opt-in | ✓!±— |
lint/operators/no-and-or-keywords | Use && and || logical operators instead of and and or. | code-quality | ✓!±— |
lint/operators/no-error-suppression | Error control operator should be added to deprecation notices and/or removed from other cases. | code-quality | ✓!±— |
lint/operators/no-loose-equality | Disallows the loose comparison operators == and !=; use === and !==. | code-quality | ✓!±— |
lint/operators/no-useless-nullsafe | There should not be useless Null-safe operator ?-> used. | dead-code | ✓!±— |
lint/operators/prefer-coalesce | Use null coalescing operator ?? where possible. | modernize | ✓!±— |
lint/operators/prefer-coalesce-assign | Use the null coalescing assignment operator ??= where possible. | modernize | ✓!±— |
lint/operators/prefer-coalesce-assign-over-fallback | Suggests 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-split | Detects 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-closure | Lambdas not (indirectly) referencing $this must be declared static. | Opt-in | ✓!±— |
lint/performance/require-qualified-native-constant | Add 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-function | Add leading \ before function invocation to speed up resolving. | Opt-in | ✓!±— |
lint/pest/no-before-all-in-describe | Replaces invalid beforeAll() and afterAll() hooks inside describe() with beforeEach() and afterEach() | coding-style | ✓!±— |
lint/pest/no-invalid-repeat | Normalizes invalid literal repeat() counts to 1 | coding-style | ✓!±— |
lint/pest/no-negated-boolean-matcher | Simplifies double-negative expectations like ->not->toBeFalse() to ->toBeTrue() | coding-style | ✓!±— |
lint/pest/no-only | Remove ->only() from Pest tests. | coding-style | ✓!±— |
lint/pest/no-redundant-type-expectation | Removes redundant literal type expectations when a later matcher keeps the chain meaningful | coding-style | ✓!±— |
lint/pest/no-redundant-uses | Removes redundant local Pest uses already configured globally in tests/Pest.php | coding-style | ✓!±— |
lint/pest/no-static-test-closure | Removes static from Pest test and hook callbacks that use the test case instance | coding-style | ✓!±— |
lint/pest/prefer-chained-expect | Chains 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-expectation | Use dedicated Pest matchers (toBeArray(), toStartWith(), toHaveCount(), ...) instead of expect(fn(...))->toBeTrue(). | coding-style | ✓!±— |
lint/pest/prefer-defer | Replaces deprecated ->tap() method with ->defer() for Pest v3 migration | coding-style | ✓!±— |
lint/pest/prefer-each-modifier | Converts foreach loops with expect() calls to use the ->each modifier | coding-style | ✓!±— |
lint/pest/prefer-expect | Converts $this->assert*() calls to Pest expect() chains | coding-style | ✓!±— |
lint/pest/prefer-extend | Converts uses() and pest()->uses() to pest()->extend() for classes and pest()->use() for traits | coding-style | ✓!±— |
lint/pest/prefer-filesystem-matchers | Simplifies combined filesystem checks to single Pest matchers | coding-style | ✓!±— |
lint/pest/prefer-not-modifier | Simplifies negated expectations by flipping the matcher (e.g., expect(!$x)->toBeTrue() becomes expect($x)->toBeFalse()) | coding-style | ✓!±— |
lint/pest/prefer-sequence | Converts consecutive indexed expect() calls to sequence() | coding-style | ✓!±— |
lint/pest/prefer-simpler-expectation | Simplify Pest expectations: expect($a > $b)->toBeTrue() becomes expect($a)->toBeGreaterThan($b), and similar. | coding-style | ✓!±— |
lint/pest/prefer-specific-expectations | Use toBeTrue()/toBeFalse()/toBeNull() instead of toBe(true|false|null). | coding-style | ✓!±— |
lint/pest/prefer-strict-equality-matchers | Converts strict equality expressions to toBe() matcher | coding-style | ✓!±— |
lint/pest/prefer-to-be-alpha | Converts ctype_alpha() checks to toBeAlpha() matcher | coding-style | ✓!±— |
lint/pest/prefer-to-be-alpha-numeric | Converts ctype_alnum() checks to toBeAlphaNumeric() matcher | coding-style | ✓!±— |
lint/pest/prefer-to-be-between | Converts expect($value >= $min && $value <= $max)->toBeTrue() to expect($value)->toBeBetween($min, $max) | coding-style | ✓!±— |
lint/pest/prefer-to-be-digits | Converts ctype_digit() checks to toBeDigits() matcher | coding-style | ✓!±— |
lint/pest/prefer-to-be-directory | Converts is_dir() checks to toBeDirectory() matcher | coding-style | ✓!±— |
lint/pest/prefer-to-be-empty | Converts empty checks and count-zero comparisons to toBeEmpty() matcher | coding-style | ✓!±— |
lint/pest/prefer-to-be-file | Converts is_file() checks to toBeFile() matcher | coding-style | ✓!±— |
lint/pest/prefer-to-be-in | Converts strict in_array() checks to the toBeIn() matcher | coding-style | ✓!±— |
lint/pest/prefer-to-be-infinite | Converts is_infinite() checks to toBeInfinite() matcher | coding-style | ✓!±— |
lint/pest/prefer-to-be-instance-of | Converts expect($obj instanceof User)->toBeTrue() to expect($obj)->toBeInstanceOf(User::class) | coding-style | ✓!±— |
lint/pest/prefer-to-be-json | Converts json_decode() null checks to toBeJson() matcher | coding-style | ✓!±— |
lint/pest/prefer-to-be-list | Converts array_is_list() checks to toBeList() matcher | coding-style | ✓!±— |
lint/pest/prefer-to-be-lowercase | Converts strtolower() equality checks to toBeLowercase() matcher | coding-style | ✓!±— |
lint/pest/prefer-to-be-nan | Converts is_nan() checks to toBeNan() matcher | coding-style | ✓!±— |
lint/pest/prefer-to-be-truthy-falsy | Converts bool cast assertions to toBeTruthy()/toBeFalsy() matchers | coding-style | ✓!±— |
lint/pest/prefer-to-be-uppercase | Converts strtoupper() equality checks to toBeUppercase() matcher | coding-style | ✓!±— |
lint/pest/prefer-to-be-url | Converts filter_var($url, FILTER_VALIDATE_URL) checks to toBeUrl() matcher | coding-style | ✓!±— |
lint/pest/prefer-to-be-uuid | Converts UUID regex validation to toBeUuid() matcher | coding-style | ✓!±— |
lint/pest/prefer-to-contain | Converts in_array() checks to toContain() matcher | coding-style | ✓!±— |
lint/pest/prefer-to-contain-equal | Converts in_array(..., false) checks to toContainEqual() matcher | coding-style | ✓!±— |
lint/pest/prefer-to-contain-only-instances-of | Converts ->each->toBeInstanceOf() pattern to toContainOnlyInstancesOf() matcher | coding-style | ✓!±— |
lint/pest/prefer-to-end-with | Converts str_ends_with() checks to toEndWith() matcher | coding-style | ✓!±— |
lint/pest/prefer-to-equal-canonicalizing | Converts sort-then-compare to toEqualCanonicalizing() matcher | coding-style | ✓!±— |
lint/pest/prefer-to-equal-with-delta | Converts expect(abs($a - $b) < $delta)->toBeTrue() to expect($a)->toEqualWithDelta($b, $delta) | coding-style | ✓!±— |
lint/pest/prefer-to-have-count | Converts expect(count($arr))->toBe(5) to expect($arr)->toHaveCount(5) | coding-style | ✓!±— |
lint/pest/prefer-to-have-key | Converts array_key_exists() checks to toHaveKey() matcher | coding-style | ✓!±— |
lint/pest/prefer-to-have-keys | Converts chained toHaveKey() calls to toHaveKeys() with array of keys | coding-style | ✓!±— |
lint/pest/prefer-to-have-length | Converts strlen()/mb_strlen() comparisons to toHaveLength() matcher | coding-style | ✓!±— |
lint/pest/prefer-to-have-method-on-class | Changes expect($object)->toHaveMethod() to expect($object::class)->toHaveMethod() for Pest v3 | coding-style | ✓!±— |
lint/pest/prefer-to-have-properties | Converts chained toHaveProperty() calls to toHaveProperties() with array of properties | coding-style | ✓!±— |
lint/pest/prefer-to-have-property | Converts property_exists() checks to toHaveProperty() matcher | coding-style | ✓!±— |
lint/pest/prefer-to-have-same-size | Converts expect(count($a))->toBe(count($b)) to expect($a)->toHaveSameSize($b) | coding-style | ✓!±— |
lint/pest/prefer-to-match | Converts expect(preg_match("/pattern/", $str))->toBe(1) to expect($str)->toMatch("/pattern/") | coding-style | ✓!±— |
lint/pest/prefer-to-match-array | Converts multiple array element assertions to toMatchArray() matcher | coding-style | ✓!±— |
lint/pest/prefer-to-match-object | Converts consecutive toHaveProperty() with values to toMatchObject() matcher | coding-style | ✓!±— |
lint/pest/prefer-to-start-with | Converts str_starts_with() checks to toStartWith() matcher | coding-style | ✓!±— |
lint/pest/prefer-to-throw | Use expect()->toThrow() instead of expectException() or try/catch in Pest tests. | coding-style | ✓!±— |
lint/pest/prefer-type-matchers | Converts expect(is_array($x))->toBeTrue() to expect($x)->toBeArray() | coding-style | ✓!±— |
lint/pest/require-type-matcher-first | Ensure type-check matchers (e.g. toBeInt, toBeInstanceOf) appear before value assertions in expect() chains and consecutive expects | coding-style | ✓!±— |
lint/php-8.1/prefer-first-class-callable | Use first-class callable syntax (strlen(...)) instead of closures, Closure::fromCallable() and string or array callables. | Opt-in | ✓!±— |
lint/php-8.2/add-skip-dots-flag | Prior 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 behaviour | modernize | ✓!±— |
lint/php-8.2/no-dollar-brace-interpolation | Replace deprecated ${var} to {$var} | modernize | ✓!±— |
lint/php-8.2/no-utf8-encode-decode | Change deprecated utf8_decode() and utf8_encode() to mb_convert_encoding() | modernize | ✓!±— |
lint/php-8.2/prefer-readonly-class | Decorate read-only class with readonly attribute | modernize | ✓!±— |
lint/php-8.3/add-const-type | Add type to constants based on their value | modernize | ✓!±— |
lint/php-8.3/prefer-dynamic-class-constant | constant(Example::class . '::' . $constName) to dynamic class const fetch Example::{$constName} | modernize | ✓!±— |
lint/php-8.3/prefer-json-validate | Replace json_decode($json, true) !== null && json_last_error() === JSON_ERROR_NONE with json_validate() | modernize | ✓!±— |
lint/php-8.3/prefer-ldap-uri | Combine separated host and port on ldap_connect() args | modernize | ✓!±— |
lint/php-8.3/prefer-readonly-anonymous-class | Decorate read-only anonymous class with readonly attribute | modernize | ✓!±— |
lint/php-8.3/prefer-self-class | Replace calls to get_class() and get_parent_class() without arguments with self::class and parent::class | modernize | ✓!±— |
lint/php-8.4/add-csv-escape-argument | Add escape argument on CSV function calls | modernize | ✓!±— |
lint/php-8.4/prefer-array-find | Replace foreach loops with array_find(), array_find_key(), array_any() or array_all() (PHP 8.4). | modernize | ✓!±— |
lint/php-8.4/prefer-round-mode-enum | Replace rounding mode constant to RoundMode enum in round() | modernize | ✓!±— |
lint/php-8.5/no-finfo-buffer-context | Remove argument by position by function name | modernize | ✓!±— |
lint/php-8.5/no-null-array-key | Replace null key in array_key_exists with empty string | modernize | ✓!±— |
lint/php-8.5/no-null-debug-info | Replaces null return value with empty array in __debugInfo methods | modernize | ✓!±— |
lint/php-8.5/no-out-of-range-chr | Wrap chr() argument with % 256 to avoid deprecated out-of-range integers | modernize | ✓!±— |
lint/php-8.5/prefer-array-first-last | Make use of array_first() and array_last() | modernize | ✓!±— |
lint/php-8.5/prefer-ord-first-byte | Replace ord($str) with ord($str[0]) | modernize | ✓!±— |
lint/php-8.6/prefer-clamp | Convert nested min()/max() calls to clamp() | modernize | ✓!±— |
lint/php-8.6/prefer-readonly-property-defaultPlanned | Move a constant constructor assignment of a readonly property to a property default value | modernize | ✓!±— |
lint/phpdoc/add-missing-param | PHPDoc 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-misplaced | Docblocks should only be used on structural elements. | coding-style | ✓!±— |
lint/phpdoc/no-mixed-overruled-by-native | Remove @param mixed and @return mixed docblock that duplicates an already declared native type | dead-code | ✓!±— |
lint/phpdoc/no-package | @package and @subpackage annotations must be removed from PHPDoc. | coding-style | ✓!±— |
lint/phpdoc/no-superfluous-tags | Removes @param, @return and @var tags that don't provide any useful information. | dead-code | ✓!±— |
lint/phpdoc/no-useless-inheritdoc | Classy that does not inherit must not have @inheritdoc tags. | coding-style | ✓!±— |
lint/phpdoc/no-useless-param | Remove @param docblock with same type as parameter type | dead-code | ✓!±— |
lint/phpdoc/no-useless-readonly | Remove useless @readonly annotation on native readonly type | dead-code | ✓!±— |
lint/phpdoc/no-useless-return | Remove @return docblock with same type as defined in PHP | dead-code | ✓!±— |
lint/phpdoc/no-useless-var | Remove unused @var annotation for properties and class constants | dead-code | ✓!±— |
lint/phpdoc/no-void-on-magic-method | Remove useless @return void docblock from magic methods __construct, __destruct, and __clone | dead-code | ✓!±— |
lint/phpdoc/require-no-named-arguments | There must be @no-named-arguments tag in PHPDoc of a class/enum/interface/trait. | Opt-in | ✓!±— |
lint/phpunit/add-allow-mock-objects-attribute | Add #[AllowMockObjectsWithoutExpectations] to PHPUnit test classes whose mocks have no expectations. | Opt-in | ✓!±— |
lint/phpunit/add-closure-return-type-from-assert | Add return type to closures narrowed by assertInstanceOf() inside PHPUnit test case classes | types | ✓!±— |
lint/phpunit/add-data-provider-allow-mock-objects | Add #[AllowMockObjectsWithoutExpectations] attribute to PHPUnit test classes that have methods with data providers and mock objects without expectations | Opt-in | ✓!±— |
lint/phpunit/add-data-provider-iterator-return-type | Add Iterator type on known PHPUnit data providers | types | ✓!±— |
lint/phpunit/add-depended-test-return-type | Add return type declaration to a test method that returns type | code-quality | ✓!±— |
lint/phpunit/add-instanceof-assert | Add an assertInstanceOf() before a nullable object is used in a PHPUnit test. | code-quality | ✓!±— |
lint/phpunit/add-instanceof-assert-for-argument | Add explicit instance assert between above nullable object pass | code-quality | ✓!±— |
lint/phpunit/add-mock-intersection-param | Add a MockObject intersection @param docblock with the mocked class, based on the mock passed in the private method call | code-quality | ✓!±— |
lint/phpunit/add-mock-intersection-type | Add MockObject&Foo / Stub&Foo intersection types to PHPDoc of mock and stub properties, params and returns. | code-quality | ✓!±— |
lint/phpunit/add-mock-object-type | Change param type of a private test method to MockObject, when expects() is called on it | Opt-in | ✓!±— |
lint/phpunit/add-param-type-depends | Add param type declaration based on @depends test method return type | code-quality | ✓!±— |
lint/phpunit/add-property-type-container-get | Add 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-mock | Add "PHPUnit\Framework\MockObject\MockObject" typed property from assigned mock to clearly separate from real objects | types | ✓!±— |
lint/phpunit/add-property-type-setup | Add strict typed property based on setUp() strict typed assigns in TestCase | types | ✓!±— |
lint/phpunit/add-property-type-setup-docblock | Add property type in PHPUnit test from docblock, if defined in setUp() method | types | ✓!±— |
lint/phpunit/add-return-type-from-mock-object | Add known property and return MockObject types | types | ✓!±— |
lint/phpunit/add-stub-intersection-type | Add a Stub intersection @var docblock with the stubbed class to a native Stub property | code-quality | ✓!±— |
lint/phpunit/add-test-void-return | Add void to PHPUnit test methods | types | ✓!±— |
lint/phpunit/add-will-return-callback-false-fallbackPlanned | Add a "return false" fallback to a willReturnCallback() closure that only returns booleans, but can fall through without a return | code-quality | ✓!±— |
lint/phpunit/add-will-return-callback-param-type | Decorate callbacks and arrow functions in willReturnCallback() with known param/return types based on reflection method | code-quality | ✓!±— |
lint/phpunit/no-any-matcherPlanned | Change deprecated $this->any() matcher assign to direct new AnyInvokedCount() | Opt-in | ✓!±— |
lint/phpunit/no-assert-contains-only | Replaces Assert::assertContainsOnly() calls with type-specific Assert::assertContainsOnly*() calls | Opt-in | ✓!±— |
lint/phpunit/no-assert-internal-type | Replace assertInternalType() with the dedicated assertIs*() assertion. | code-quality | ✓!±— |
lint/phpunit/no-assert-is-type | Replaces Assert::isType() calls with type-specific Assert::is*() calls | Opt-in | ✓!±— |
lint/phpunit/no-assert-same-type-mismatch | Correct expected type in assertSame() method to match strict type of passed variable | code-quality | ✓!±— |
lint/phpunit/no-at-matcher | Replace at() method call with desired matcher | code-quality | ✓!±— |
lint/phpunit/no-bare-mock-assign | Use a createMock() result directly where it is used once, instead of assigning it to a variable first | code-quality | ✓!±— |
lint/phpunit/no-bare-mock-builder | Remove getMockBuilder() to createMock() | code-quality | ✓!±— |
lint/phpunit/no-empty-test | Remove empty test methods | code-quality | ✓!±— |
lint/phpunit/no-entity-mock | Move from entity mock, to direct use of class instance and setters | code-quality | ✓!±— |
lint/phpunit/no-expected-exception-annotation | Replace @expectedException annotations with expectException() calls. | code-quality | ✓!±— |
lint/phpunit/no-expects-any | Remove expect($this->any()) from mocks as it has no added value | code-quality | ✓!±— |
lint/phpunit/no-final-constructor-override | Remove override final construct test case | Opt-in | ✓!±— |
lint/phpunit/no-flipped-assertion | Turns accidentally flipped assert order to right one, with expected expr to left | code-quality | ✓!±— |
lint/phpunit/no-float-delta-parameter | Change assertEquals()/assertSame() method using float on expected argument to new specific alternatives. | code-quality | ✓!±— |
lint/phpunit/no-mock-intersection-property | Make properties in tests with intersection mock object either object type or mock type | code-quality | ✓!±— |
lint/phpunit/no-negated-assertion | Turns not-operator comparisons to their method name alternatives in PHPUnit TestCase | code-quality | ✓!±— |
lint/phpunit/no-setup-override-attribute | Remove override attribute, if setUp()/tearDown() references parent call to improve readability | code-quality | ✓!±— |
lint/phpunit/no-stub-with-expectations | Change createStub() to createMock(), when the created variable is passed to a method that requires MockObject type | code-quality | ✓!±— |
lint/phpunit/no-test-constructor | Replace or remove __construct() in PHPUnit test cases; use setUp(). | code-quality | ✓!±— |
lint/phpunit/no-unused-mock | Remove standalone method calls with no effect | code-quality | ✓!±— |
lint/phpunit/no-unused-mock-property | Remove never used property mock, only to set expectations | code-quality | ✓!±— |
lint/phpunit/no-value-object-mock | Use a real instance instead of a mock for entities and simple value objects in tests. | code-quality | ✓!±— |
lint/phpunit/prefer-assert | Turns assert() calls in tests to PHPUnit assert method alternative | code-quality | ✓!±— |
lint/phpunit/prefer-assert-array-has-key | Turns assertTrue() + isset() comparisons to more precise assertArrayHasKey() method | code-quality | ✓!±— |
lint/phpunit/prefer-assert-count | Replaces use of assertSame and assertEquals on Countable objects with count method | code-quality | ✓!±— |
lint/phpunit/prefer-assert-instanceof | Turns instanceof comparisons to their method name alternatives in PHPUnit TestCase | code-quality | ✓!±— |
lint/phpunit/prefer-assert-instanceof-over-empty | Change assertNotEmpty() and assertNotNull() on an object to more clear assertInstanceof() | code-quality | ✓!±— |
lint/phpunit/prefer-assert-instances-of | Simplify unnecessary foreach check of instances | code-quality | ✓!±— |
lint/phpunit/prefer-assert-null-true-false | Turns same bool and null comparisons to their method name alternatives in PHPUnit TestCase | code-quality | ✓!±— |
lint/phpunit/prefer-assert-same | PHPUnit methods like assertSame should be used instead of assertEquals. | code-quality | ✓!±— |
lint/phpunit/prefer-assert-string-contains | Turns strpos/stripos comparisons to their method name alternatives in PHPUnit TestCase | code-quality | ✓!±— |
lint/phpunit/prefer-assert-true-false | Change $this->assertSame(true, ...) to assertTrue() | code-quality | ✓!±— |
lint/phpunit/prefer-attribute-over-annotation | Change annotations with value to attribute | Opt-in | ✓!±— |
lint/phpunit/prefer-attributes | PHPUnit attributes must be used over their respective PHPDoc-based annotations. | Opt-in | ✓!±— |
lint/phpunit/prefer-comparison-assertion | Replace assertTrue()/assertFalse() on a comparison, instanceof, isset, count or strpos with the specific assertion. | code-quality | ✓!±— |
lint/phpunit/prefer-covers-attribute | Change covers annotations with value to attribute | Opt-in | ✓!±— |
lint/phpunit/prefer-create-mock | Replace getMock*() with createMock(). | code-quality | ✓!±— |
lint/phpunit/prefer-create-stub | Use createStub() instead of createMock() when no expectations are set. | code-quality | ✓!±— |
lint/phpunit/prefer-create-stub-argument | Use createStub() over createMock() when used as argument or array value and does not add any mock requirements | code-quality | ✓!±— |
lint/phpunit/prefer-create-stub-expression | Replace createMock() assigned to variable that is only used as arg with no expectations, to createStub() | code-quality | ✓!±— |
lint/phpunit/prefer-create-stub-in-coalesce | Use createStub() over createMock() when used as argument/array item coalesce ?? fallback | code-quality | ✓!±— |
lint/phpunit/prefer-data-provider | Replace testWith annotation to data provider. | code-quality | ✓!±— |
lint/phpunit/prefer-data-provider-attribute | Change dataProvider annotations to attribute | Opt-in | ✓!±— |
lint/phpunit/prefer-dedicated-assertion | Use dedicated PHPUnit assertions such as assertFileExists() instead of assertTrue(file_exists()). | code-quality | ✓!±— |
lint/phpunit/prefer-depends-attribute | Change depends annotations with value to attribute | Opt-in | ✓!±— |
lint/phpunit/prefer-expect-exception | Replace setExpectedException*() with expectException*(). | code-quality | ✓!±— |
lint/phpunit/prefer-inline-create-stub | Inline stub property only used to pass as new argument to a method call | code-quality | ✓!±— |
lint/phpunit/prefer-local-over-setup-property | Turn property used only in setUp() to variable | code-quality | ✓!±— |
lint/phpunit/prefer-mock-intersection-return | Change a MockObject @return union docblock to an intersection type | code-quality | ✓!±— |
lint/phpunit/prefer-named-data-provider-keys | Change the array-index names to the argument name of the dataProvider | Opt-in | ✓!±— |
lint/phpunit/prefer-namespaced | PHPUnit 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-callback | Narrow single-value match willReturnCallback() to with() and willReturn() call | code-quality | ✓!±— |
lint/phpunit/prefer-narrow-with-consecutive | Narrow identical withConsecutive() and willReturnOnConsecutiveCalls() to single call | code-quality | ✓!±— |
lint/phpunit/prefer-new-assertion-names | Rename deprecated PHPUnit assertions like assertFileNotExists to new methods like assertFileDoesNotExist. | code-quality | ✓!±— |
lint/phpunit/prefer-property-assertions | Split object casted to array to assert public properties to standalone assert calls | code-quality | ✓!±— |
lint/phpunit/prefer-requires-attribute | Change Requires annotations with values to attributes | Opt-in | ✓!±— |
lint/phpunit/prefer-short-will-return | Use willReturn() and similar instead of will($this->returnValue()). | code-quality | ✓!±— |
lint/phpunit/prefer-simple-callback-assert | Replaces use of with, callback and sole assertSame() to simple equalTo() matcher | code-quality | ✓!±— |
lint/phpunit/prefer-simple-mock-expectation | Replace withConsecutive()/willReturnCallback() that cover one value with with()/willReturn(). | code-quality | ✓!±— |
lint/phpunit/prefer-simple-with-matcher | Simplify ->with() matchers: plain values instead of equalTo(), isInstanceOf() instead of a callback. | code-quality | ✓!±— |
lint/phpunit/prefer-specific-assertions | PHPUnit assertion method calls like ->assertSame(true, $foo) should be written with dedicated method like ->assertTrue($foo). | code-quality | ✓!±— |
lint/phpunit/prefer-specific-true-false-assertion | Turns true/false comparisons to their method name alternatives in PHPUnit TestCase when possible | code-quality | ✓!±— |
lint/phpunit/prefer-specific-will-method | Changes $mock->will() call to more specific method | code-quality | ✓!±— |
lint/phpunit/prefer-standalone-asserts-over-callback | Replaces identical compare in $this->callable() sole return to standalone PHPUnit asserts that show more detailed failure messages | code-quality | ✓!±— |
lint/phpunit/prefer-stub-var | Update the @var docblock of a property changed to a Stub native type, from MockObject to Stub | code-quality | ✓!±— |
lint/phpunit/prefer-test-attribute | Suggests using PHPUnit's #[Test] attribute instead of the test method name prefix. | code-quality | ✓!±— |
lint/phpunit/prefer-test-prefix | Replace @test with prefixed function | code-quality | ✓!±— |
lint/phpunit/prefer-test-with-attribute | Change @testWith() annotation to #[TestWith] attribute | Opt-in | ✓!±— |
lint/phpunit/prefer-this-call | Changes PHPUnit calls from self::assert*() to $this->assert*() | code-quality | ✓!±— |
lint/phpunit/prefer-ticket-attribute | Change annotations with value to attribute | Opt-in | ✓!±— |
lint/phpunit/prefer-will-return-callback | Merge ->with($this->callback()) and ->willReturn() into willReturnCallback(). | code-quality | ✓!±— |
lint/phpunit/prefer-with-is-instance-of | Replaces use of with, callable and instance assert to simple isInstanceOf() method | code-quality | ✓!±— |
lint/phpunit/prefer-yield-data-provider | Turns array return to yield in data providers | code-quality | ✓!±— |
lint/phpunit/require-assertion-style | Calls 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-covers | Adds a default @coversNothing annotation to PHPUnit test classes that have no @covers* annotation. | Opt-in | ✓!±— |
lint/phpunit/require-data-provider-naming | Data provider names must match the name of the test. | Opt-in | ✓!±— |
lint/phpunit/require-data-provider-newlines | Change data provider in PHPUnit test case to newline per item | code-quality | ✓!±— |
lint/phpunit/require-data-provider-order | Data provider method must be placed after/before the last/first test where used. | coding-style | ✓!±— |
lint/phpunit/require-exact-test-argument-type | Correct expected type in setter of tests, if param type is strictly defined | code-quality | ✓!±— |
lint/phpunit/require-final-test-case | Make PHPUnit test case final | code-quality | ✓!±— |
lint/phpunit/require-internal | All PHPUnit test classes should be marked as internal. | Opt-in | ✓!±— |
lint/phpunit/require-iterable-data-provider | The return type of PHPUnit data provider must be iterable. | code-quality | ✓!±— |
lint/phpunit/require-method-casing | Enforce camel (or snake) case for PHPUnit test methods, following configuration. | coding-style | ✓!±— |
lint/phpunit/require-mock-expects | Add an explicit expects() to mocked method calls. | code-quality | ✓!±— |
lint/phpunit/require-protected-setup | Changes the visibility of the setUp() and tearDown() functions of PHPUnit to protected, to match the PHPUnit TestCase. | Opt-in | ✓!±— |
lint/phpunit/require-size | All PHPUnit test cases should have @small, @medium or @large annotation to enable run time limits. | Opt-in | ✓!±— |
lint/phpunit/require-static-data-provider | Make PHPUnit data providers static. | code-quality | ✓!±— |
lint/phpunit/require-strict-types-in-tests | Add declare(strict_types=1) to PHPUnit test class file | code-quality | ✓!±— |
lint/phpunit/require-string-assert-argument | Cast 2nd argument in assertStringContainsString() to a string if not yet | code-quality | ✓!±— |
lint/phpunit/require-test-annotation-style | Mark tests consistently: a test prefix or a @test annotation. | code-quality | ✓!±— |
lint/refactor/add-override-attribute | Add #[Override] to properties that override a parent class's property (PHP 8.5). | Opt-in | ✓!±— |
lint/refactor/no-negated-condition | Flip a ternary whose condition is negated: drop the ! (or use === / ==) and swap the branches. | code-quality | ✓!±— |
lint/refactor/prefer-attribute-over-annotation | Replace configured PHPDoc annotations (including nested ones) with attributes. | Opt-in | ✓!±— |
lint/refactor/prefer-constant | Replace function calls that return a constant (php_sapi_name(), pi(), ...) with the constant. | coding-style | ✓!±— |
lint/refactor/remove-attribute | Removes configured attributes by their respective FQN. | Opt-in | ✓!±— |
lint/refactor/remove-function-argument | Remove argument by position by function name | Opt-in | ✓!±— |
lint/refactor/remove-function-call | Remove defined function calls | Opt-in | ✓!±— |
lint/refactor/remove-phpdoc-annotation | Removes configured annotations from PHPDoc. | Opt-in | ✓!±— |
lint/refactor/rename-cast | Renames casts | Opt-in | ✓!±— |
lint/refactor/rename-class | Replace defined classes by new ones | Opt-in | ✓!±— |
lint/refactor/rename-class-constant | Replace defined class constants in their calls | Opt-in | ✓!±— |
lint/refactor/rename-constant | Replace constant by new ones | Opt-in | ✓!±— |
lint/refactor/rename-function | Turn defined function call new one | Opt-in | ✓!±— |
lint/refactor/rename-method | Turn method names to new ones | Opt-in | ✓!±— |
lint/refactor/rename-phpdoc-tag | Renames PHPDoc tags. | Opt-in | ✓!±— |
lint/refactor/replace-function-with-constant | Changes use of function calls to use constants | Opt-in | ✓!±— |
lint/refactor/replace-function-with-new | Change configured function calls to new Instance | Opt-in | ✓!±— |
lint/refactor/replace-function-with-static | Turn defined function call to static method call | Opt-in | ✓!±— |
lint/refactor/replace-static-with-method | Change static call to service method via constructor injection | Opt-in | ✓!±— |
lint/security/add-sensitive-parameter | Requires that parameters that are likely to contain sensitive information (e.g., passwords) are marked with the #[SensitiveParameter] attribute. | code-quality | ✓!±— |
lint/security/no-debug-calls | Remove or report debug calls left in code: dd(), dump(), var_dump(), ray(), and ->dd()/->dump() in Pest expectations. | coding-style | ✓!±— |
lint/security/no-eval | Detects unsafe uses of the eval construct. | code-quality | ✓!±— |
lint/security/no-ffi | Detects unsafe use of the PHP FFI (Foreign Function Interface) extension. | code-quality | ✓!±— |
lint/security/no-global | Detects the use of the global keyword and the $GLOBALS variable. | code-quality | ✓!±— |
lint/security/no-homoglyph-names | Replace accidental usage of homoglyphs (non ascii characters) in names. | code-quality | ✓!±— |
lint/security/no-insecure-comparison | Detects insecure comparison of passwords or tokens using ==, !=, ===, or !==. | code-quality | ✓!±— |
lint/security/no-literal-password | Detects the use of literal values for passwords or sensitive data. | code-quality | ✓!±— |
lint/security/no-request-variable | Detects the use of the $_REQUEST variable, which is considered unsafe. | code-quality | ✓!±— |
lint/security/no-restricted-functions | Flags calls to functions that are disallowed via rule configuration. | Opt-in | ✓!±— |
lint/security/no-restricted-instantiation | Flags direct instantiation of specific types that are disallowed via rule configuration. | Opt-in | ✓!±— |
lint/security/no-tainted-data | Detects 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-delimiter | This rule requires that when using preg_quote(), the second $delimiter argument is always provided. | code-quality | ✓!±— |
lint/statements/add-safe-strict-types | Add declare(strict_types=1) if missing and only if the file is type-safe (no scalar type coercions). | code-quality | ✓!±— |
lint/statements/no-empty | Remove useless (semicolon) statements. | dead-code | ✓!±— |
lint/statements/require-strict-types | Force a strict types mode in all files. | code-quality | ✓!±— |
lint/strings/no-non-printable-character | Remove Zero-width space (ZWSP), Non-breaking space (NBSP) and other invisible unicode symbols. | code-quality | ✓!±— |
lint/strings/no-trailing-whitespace-in-string | There must be no trailing whitespace at the end of lines in strings. | Opt-in | ✓!±— |
lint/strings/prefer-mb-functions | Replace non multibyte-safe functions with corresponding mb function. | Opt-in | ✓!±— |
lint/strings/require-interpolation-style | Enforces a consistent string style: either prefer string interpolation | Opt-in | ✓!±— |
lint/strings/require-string-line-ending | All multi-line strings must use correct line ending. | Opt-in | ✓!±— |
lint/style/add-param-type-from-phpdoc | Takes @param annotations of non-mixed types and adjusts accordingly the function signature. | Opt-in | ✓!±— |
lint/style/add-property-type-from-phpdoc | Takes @var annotation of non-mixed types and adjusts accordingly the property signature.. | Opt-in | ✓!±— |
lint/style/add-return-type-from-phpdoc | Takes @return annotation of non-mixed types and adjusts accordingly the function signature. | Opt-in | ✓!±— |
lint/style/no-alias-function | Master functions shall be used instead of aliases. | coding-style | ✓!±— |
lint/style/no-ambiguous-constant | Enforces that all constant references made from within a namespace are explicit. | Opt-in | ✓!±— |
lint/style/no-ambiguous-function | Enforces that all function calls made from within a namespace are explicit. | Opt-in | ✓!±— |
lint/style/no-array-accumulation-in-loop | Detects O(n²) array accumulation patterns inside loops. | coding-style | ✓!±— |
lint/style/no-array-push | Converts simple usages of array_push($x, $y); to $x[] = $y;. | code-quality | ✓!±— |
lint/style/no-assign-in-ternary-branch | Assign outcome of ternary condition to variable, where applicable | code-quality | ✓!±— |
lint/style/no-call-user-func | Call callables directly instead of through call_user_func(). | code-qualitycoding-style | ✓!±— |
lint/style/no-dynamic-method-call | Disallows calling a method by a variable name ($object->$method()). | coding-style | ✓!±— |
lint/style/no-dynamic-method-callable | Disallows a first-class callable of a method with a variable name ($object->$method(...)). | coding-style | ✓!±— |
lint/style/no-dynamic-property | Disallows accessing a property by a variable name ($object->$property). | coding-style | ✓!±— |
lint/style/no-dynamic-static-call | Disallows calling a static method by a variable name (Foo::$method()). | coding-style | ✓!±— |
lint/style/no-dynamic-static-callable | Disallows a first-class callable of a static method with a variable name (Foo::$method(...)). | coding-style | ✓!±— |
lint/style/no-dynamic-static-property | Disallows accessing a static property by a variable name (Foo::$$property). | coding-style | ✓!±— |
lint/style/no-empty | Detects the use of the empty() construct. | code-quality | ✓!±— |
lint/style/no-ereg | Replace deprecated ereg regular expression functions with preg. | modernize | ✓!±— |
lint/style/no-escaped-quotes | Prefer quote that are not inside the string | coding-style | ✓!±— |
lint/style/no-hash-emoji | Discourages usage of the #️⃣ emoji in place of the ASCII #. | coding-style | ✓!±— |
lint/style/no-ini-set | Enforces that ini_set is not used. | Opt-in | ✓!±— |
lint/style/no-inline-html | Disallows inline content (text outside of PHP tags) in source files. | Opt-in | ✓!±— |
lint/style/no-invalid-phpdoc | Checks for syntax errors in docblock comments, such as malformed {@see} or | coding-style | ✓!±— |
lint/style/no-is-null | Replaces is_null($var) expression with null === $var. | Opt-in | ✓!±— |
lint/style/no-isset | Detects the use of the isset() construct. | Opt-in | ✓!±— |
lint/style/no-multi-assign | Split chained assignments ($a = $b = 1) into one assignment per statement. | coding-style | ✓!±— |
lint/style/no-multiple-classes-per-file | Ensures that each file contains at most one class-like definition (class, interface, enum, or trait). | Opt-in | ✓!±— |
lint/style/no-nested-ternary | Nested ternary expressions are disallowed to improve code clarity and prevent potential bugs arising from confusion over operator associativity. | coding-style | ✓!±— |
lint/style/no-parameter-shadowing | Detects when a function or method parameter is shadowed by a loop variable, | coding-style | ✓!±— |
lint/style/no-php4-constructor | Convert PHP4-style constructors to __construct. | modernize | ✓!±— |
lint/style/no-redundant-final | Removes final from methods where possible. | modernize | ✓!±— |
lint/style/no-redundant-final-const | Remove final from constants in classes defined as final | dead-code | ✓!±— |
lint/style/no-redundant-yield-from | Yield from array must be unpacked to series of yields. | coding-style | ✓!±— |
lint/style/no-short-ternary | Detects the use of the shorthand ternary and elvis operators. | coding-style | ✓!±— |
lint/style/no-side-effects-with-declarations | Enforces that a PHP file either declares symbols (classes, functions, | Opt-in | ✓!±— |
lint/style/no-sleep-wakeup | Replace __sleep()/__wakeup() with __serialize()/__unserialize(). | modernize | ✓!±— |
lint/style/no-sprintf-concat | Disallows string concatenation with the result of an sprintf call. | Opt-in | ✓!±— |
lint/style/no-unreachable-loop | Detects loops (for, foreach, while, do-while) that unconditionally break or return | coding-style | ✓!±— |
lint/style/no-useless-printf | There must be no printf calls with only the first argument. | coding-style | ✓!±— |
lint/style/no-useless-sprintf | Remove sprintf() calls with only the format argument. | dead-code | ✓!±— |
lint/style/no-variable-variable | Disallows variable variables ($$name). | coding-style | ✓!±— |
lint/style/prefer-arrow-function | Anonymous functions with return as the only statement must use arrow functions. | modernize | ✓!±— |
lint/style/prefer-cast-over-intval | Replaces intval, floatval, doubleval, strval and boolval function calls with according type casting operator. | Opt-in | ✓!±— |
lint/style/prefer-cast-over-settype | Cast shall be used, not settype. | code-quality | ✓!±— |
lint/style/prefer-catch-name-from-type | Type and name of catch exception should match | coding-style | ✓!±— |
lint/style/prefer-class-constant | Use Foo::class instead of class-name strings. | modernizecoding-style | ✓!±— |
lint/style/prefer-class-keyword-on-object | Replace get_class calls on object variables with class keyword syntax. | modernize | ✓!±— |
lint/style/prefer-compound-assignment | Shorthand notation for operators should be used if possible. | code-quality | ✓!±— |
lint/style/prefer-create-from-timestamp | Suggests DateTimeImmutable::createFromTimestamp() when a Unix timestamp is converted | Opt-in | ✓!±— |
lint/style/prefer-date-time-immutable | Class DateTimeImmutable should be used instead of DateTime. | Opt-in | ✓!±— |
lint/style/prefer-dir-constant | Replaces dirname(__FILE__) expression with equivalent __DIR__ constant. | modernize | ✓!±— |
lint/style/prefer-dirname-levels | Replace nested dirname() calls with one call and a $levels argument. | modernize | ✓!±— |
lint/style/prefer-early-continue | Continue early instead of nesting the loop body in an if. | early-return | ✓!±— |
lint/style/prefer-early-return | Return early instead of nesting the rest of the function in an if or else. | code-quality | ✓!±— |
lint/style/prefer-early-return-over-prepared-value | Return early from each if instead of preparing a variable that is returned at the end. | code-quality | ✓!±— |
lint/style/prefer-empty-string-compare | Compare with '' instead of strlen() === 0. | code-quality | ✓!±— |
lint/style/prefer-generic-array-phpdoc | PHPDoc array<T> type must be used instead of T[]. | Opt-in | ✓!±— |
lint/style/prefer-instanceof-stringable | Detects the legacy pattern is_object($x) && method_exists($x, '__toString') and suggests | coding-style | ✓!±— |
lint/style/prefer-list-phpdoc | PHPDoc list type must be used instead of array without a key. | Opt-in | ✓!±— |
lint/style/prefer-php-version-id | Changes use of call to version compare function to use of PHP version constant | coding-style | ✓!±— |
lint/style/prefer-phpdoc-comment | Comments with annotation should be docblock when used on structural elements. | Opt-in | ✓!±— |
lint/style/prefer-pow-operator | Converts pow to the ** operator. | modernize | ✓!±— |
lint/style/prefer-property-over-local-getter | Privatize getter of local property to property | privatization | ✓!±— |
lint/style/prefer-random-int | Replaces rand, srand, getrandmax functions calls with their mt_* analogs or random_int. | modernize | ✓!±— |
lint/style/prefer-readonly-keyword | Converts readonly comment on classes to the readonly keyword. | coding-style | ✓!±— |
lint/style/prefer-self-reference | Inside class or interface element self should be preferred to the class name itself. | Opt-in | ✓!±— |
lint/style/prefer-short-ternary | Use the Elvis operator ?: where possible. | Opt-in | ✓!±— |
lint/style/prefer-spread | Replace call_user_func_array() with variadic | coding-style | ✓!±— |
lint/style/prefer-static-private-method | Converts private methods to static where possible. | Opt-in | ✓!±— |
lint/style/prefer-str-contains | Replace strpos() and stripos() calls with str_starts_with() or str_contains() if possible. | modernize | ✓!±— |
lint/style/prefer-variadic-param | Refactor func_get_args() in to a variadic param | coding-style | ✓!±— |
lint/style/prefer-while-loop | Suggests using a while loop instead of a for loop when the for loop does not have any | Opt-in | ✓!±— |
lint/style/require-assign-set-padding | Add extra space before new assign set | coding-style | ✓!±— |
lint/style/require-create-from-format-bang | The first argument of DateTime::createFromFormat method must start with !. | Opt-in | ✓!±— |
lint/style/require-final-class | All classes must be final, except abstract ones and Doctrine entities. | Opt-in | ✓!±— |
lint/style/require-final-internal-class | Internal classes should be final. | Opt-in | ✓!±— |
lint/style/require-final-public-method | All public methods of abstract classes should be final. | Opt-in | ✓!±— |
lint/style/require-fopen-binary-flag | The flags in fopen calls must omit t, and b must be omitted or included consistently. | Opt-in | ✓!±— |
lint/style/require-fopen-flag-order | Order the flags in fopen calls, b and t must be last. | Opt-in | ✓!±— |
lint/style/require-implode-separator | Function implode must be called with 2 arguments in the documented order. | modernize | ✓!±— |
lint/style/require-namespace | Detects files that contain definitions (classes, interfaces, enums, traits, functions, or constants) | Opt-in | ✓!±— |
lint/style/require-naming-convention | Enforce naming conventions for classes, interfaces, traits, enums, functions, methods, properties, constants and variables (options per kind). | Opt-in | ✓!±— |
lint/style/require-ordered-traits | Trait use statements must be sorted alphabetically. | Opt-in | ✓!±— |
lint/style/require-parent-visibility | Make method visibility same as parent one | coding-style | ✓!±— |
lint/style/require-phpdoc | Detects declarations that are missing a docblock. | Opt-in | ✓!±— |
lint/style/require-sorted-integer-keys | Detects array literals with integer keys that are not in ascending order. | Opt-in | ✓!±— |
lint/style/require-statement-padding | Add empty new line after different-type statements to improve code readability | coding-style | ✓!±— |
lint/style/require-todo-reference | Require TODO and FIXME comments to reference a user or issue. | Opt-in | ✓!±— |
lint/tags/no-invalid-open-tag | Detects misspelled PHP opening tags like <php? instead of <?php. | code-quality | ✓!±— |
lint/types/add-array-return-type | Add return type from return direct array | types | ✓!±— |
lint/types/add-arrow-function-return-type | Add known return type to arrow function | types | ✓!±— |
lint/types/add-bool-return-type | Add bool return type based on strict bool returns type operations | types | ✓!±— |
lint/types/add-bool-return-type-from-const | Add return bool, based on direct true/false returns | types | ✓!±— |
lint/types/add-bool-return-type-from-mixed-returnsPlanned | Add bool return type when returns mix direct true/false consts with strict bool expressions | types | ✓!±— |
lint/types/add-closure-never-return | Add "never" return-type for closure that never return anything | types | ✓!±— |
lint/types/add-closure-return-type | Add return type to closures based on known return values | types | ✓!±— |
lint/types/add-closure-void-return | Add closure return type void if there is no return | types | ✓!±— |
lint/types/add-datetime-property-type | Set DateTime to DateTimeInterface for DateTime property with DateTimeInterface docblock | types | ✓!±— |
lint/types/add-fluent-return-type | Add return type from strict return $this | types | ✓!±— |
lint/types/add-function-void-return | Add function return type void if there is no return | types | ✓!±— |
lint/types/add-getter-return-phpdoc | Add @return array docblock to a getter method based on @var of the property | types | ✓!±— |
lint/types/add-magic-method-return-type | Add known magic methods parameter and return type declarations | types | ✓!±— |
lint/types/add-method-void-return | Add return type void to function like without any return | types | ✓!±— |
lint/types/add-never-return-type | Add a never return type to functions, methods and closures that never return. | types | ✓!±— |
lint/types/add-nullable-return-type | Add basic ? nullable type to class methods and functions, as of PHP 7.1 | types | ✓!±— |
lint/types/add-numeric-return-type | Add int/float return type based on strict typed returns | types | ✓!±— |
lint/types/add-numeric-return-type-from-scalar | Add int/float return type based on strict scalar returns type | types | ✓!±— |
lint/types/add-param-phpdoc-from-callable-call | Add param array docblock based on callable native function call | types | ✓!±— |
lint/types/add-param-phpdoc-from-dim-fetch | Add @param docblock array type, based on array dim fetch access | types | ✓!±— |
lint/types/add-param-phpdoc-from-local-calls | Add @param array docblock to a class method based on local call types | types | ✓!±— |
lint/types/add-param-phpdoc-from-reference-assign | Add @param docblock array type, based on type to assigned parameter reference | types | ✓!±— |
lint/types/add-param-type-array-any-all | Add a type to an untyped array_any()/array_all() closure param, based on the array item type | types | ✓!±— |
lint/types/add-param-type-array-dim-fetch | Add array type based on array dim fetch use | types | ✓!±— |
lint/types/add-param-type-array-function | Add array_filter()/array_map() function closure param type, based on passed iterable | types | ✓!±— |
lint/types/add-param-type-array-map | Applies type hints to array_map closures | types | ✓!±— |
lint/types/add-param-type-array-reduce | Applies type hints to array_reduce closures | types | ✓!±— |
lint/types/add-param-type-arrow-dim-fetch | Add closure and arrow function param array type, if dim fetch is used inside | types | ✓!±— |
lint/types/add-param-type-data-provider | Adds param type declaration based on PHPUnit provider return type declaration | types | ✓!±— |
lint/types/add-param-type-dim-fetch-key | Add method param type based on use in array dim fetch of known keys | types | ✓!±— |
lint/types/add-param-type-iterable-method-call | Applies type hints to closures on Iterable method calls where key/value types are documented | types | ✓!±— |
lint/types/add-param-type-method-call | Change private method param type to strict type, based on passed strict types | types | ✓!±— |
lint/types/add-param-type-property | Add param type declaration based on property type | types | ✓!±— |
lint/types/add-param-type-spl-fixed-array | Add exact fixed array type in known cases | types | ✓!±— |
lint/types/add-param-type-variable-call | Add closure param object type based on the argument the assigned closure variable is called with | types | ✓!±— |
lint/types/add-private-method-array-return-type | Add strict return array type to private methods based on created empty array and returned | types | ✓!±— |
lint/types/add-property-type-assigns | Add typed property from assigned types | types | ✓!±— |
lint/types/add-property-type-constructor | Add typed properties based only on strict constructor types | types | ✓!±— |
lint/types/add-property-type-get-repository | Add 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-getter | Add property type based on strict setter and getter method | types | ✓!±— |
lint/types/add-return-phpdoc-common-object | Add @return docblock array of objects, that have common denominator interface/parent class | types | ✓!±— |
lint/types/add-return-phpdoc-dim-assigned-object | Add @return docblock array of objects, that are dim assigned to returned variable | types | ✓!±— |
lint/types/add-return-phpdoc-direct-array | Add simple @return array docblock based on direct single level direct return of [] | types | ✓!±— |
lint/types/add-return-phpdoc-json-array | Add @return docblock for array based on return of json_decode() return array | types | ✓!±— |
lint/types/add-return-phpdoc-scalar-array | Add @return docblock for scalar array from strict array assignments | types | ✓!±— |
lint/types/add-return-type-from-cast | Add return type to function like with return cast | types | ✓!±— |
lint/types/add-return-type-from-constant | Add strict type declaration based on returned constants | types | ✓!±— |
lint/types/add-return-type-from-get-repository | Add repository return type declaration based on @return docblock, when a method returns entity manager getRepository() fetch | types | ✓!±— |
lint/types/add-return-type-from-native-call | Add strict return type based native function or native method | types | ✓!±— |
lint/types/add-return-type-from-new | Add return type to function like with return new | types | ✓!±— |
lint/types/add-return-type-from-new-array | Add strict return array type based on created empty array and returned | types | ✓!±— |
lint/types/add-return-type-from-param | Add return type based on strict parameter type | types | ✓!±— |
lint/types/add-return-type-from-parent | Add missing return type declaration based on parent class method | types | ✓!±— |
lint/types/add-return-type-from-property | Add return method return type based on strict typed property | types | ✓!±— |
lint/types/add-return-type-from-ternary | Add method return type based on strict ternary values | types | ✓!±— |
lint/types/add-return-type-from-try-catch | Add known type declarations based on first-level try/catch return values | types | ✓!±— |
lint/types/add-return-type-from-typed-call | Add return type from strict return type of call | types | ✓!±— |
lint/types/add-return-type-from-yield | Add return type declarations from yields | types | ✓!±— |
lint/types/add-string-return-type | Add string return type based on returned strict string values | types | ✓!±— |
lint/types/add-string-return-type-from-scalar | Add string return type based on returned string scalar values | types | ✓!±— |
lint/types/add-union-return-type | Add union return type | types | ✓!±— |
lint/types/add-var-phpdoc-from-constructor-param | Add @var array docblock to a property based on @param of constructor assign | types | ✓!±— |
lint/types/add-var-phpdoc-from-default | Add @var array docblock to array property based on iterable default value | types | ✓!±— |
lint/types/add-var-phpdoc-from-dim-fetch | Add @var array property docblock from dim fetches on property fetch assignment | types | ✓!±— |
lint/types/add-var-phpdoc-from-getter | Add @var array property docblock from its getter @return | types | ✓!±— |
lint/types/add-void-return-type | Add a void return type to functions, methods, closures and tests that never return a value. | types | ✓!±— |
lint/types/no-loose-comparison | Comparisons should be strict. | code-quality | ✓!±— |
lint/types/no-nullsafe-on-non-null | Cleanup unneeded nullsafe operator | code-quality | ✓!±— |
lint/types/no-phpstan-phpdoc-tagPlanned | Merge more precise @phpstan-var/@phpstan-param/@phpstan-return docblock tag into its native @var/@param/@return tag | types | ✓!±— |
lint/types/prefer-explicit-null-instanceof | Make implicit nullable object checks explicit with instanceof | code-quality | ✓!±— |
lint/types/prefer-generic-collection-phpdoc | Change @return "Type[]|ArrayCollection" union docblock to a generic "ArrayCollection<int, Type>" | types | ✓!±— |
lint/types/prefer-identical-same-type | Use ===/!== over ==/!=, if values have the same type | code-quality | ✓!±— |
lint/types/prefer-instanceof | Use instanceof instead of is_a(), null checks or truthiness checks on nullable objects. | code-quality | ✓!±— |
lint/types/prefer-literal-bool-phpdocPlanned | Narrow @return docblock "bool" to "false" or "true" when the native return type only allows one of them | types | ✓!±— |
lint/types/prefer-narrow-param-type | Narrow an already nullable array_any()/array_all()/array_find()/array_find_key() closure param to the non-nullable array item type | types | ✓!±— |
lint/types/prefer-specific-return-type | Narrows return type from generic object or parent class to specific class in final classes/methods | types | ✓!±— |
lint/types/require-strict-param | Functions should be used with $strict param set to true. | coding-style | ✓!±— |
analyse/arrays/invalid-array-key | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/arrays/invalid-destructuring | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/arrays/read-without-offset | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/attributes/invalid | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/attributes/invalid-arrow-function-attribute | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/attributes/invalid-class-attribute | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/attributes/invalid-class-constant-attribute | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/attributes/invalid-closure-attribute | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/attributes/invalid-constant-attribute | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/attributes/invalid-enum-case-attribute | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/attributes/invalid-function-attribute | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/attributes/invalid-hook-attribute | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/attributes/invalid-method-attribute | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/attributes/invalid-parameter-attribute | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/attributes/invalid-property-attribute | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/attributes/invalid-trait-attribute | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/attributes/trait-as-attribute | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/casing/inherited-method-case | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/casts/unset-not-supported | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/abstract-method-in-concrete-class | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/abstract-private-method | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/callable-property-type | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/class-named-constant | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/conflicting-trait-constant | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/constant-in-trait | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/constructor-with-return-type | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/disallowed-subtype | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/duplicate-declaration | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/duplicate-trait-member | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/dynamic-static-call | | analyse-strictanalyse-max | ✓!±— |
analyse/classes/dynamic-static-callable | | analyse-strictanalyse-max | ✓!±— |
analyse/classes/enum-case-outside-enum | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/final-constant-not-supported | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/final-private-constant | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/final-private-method | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/get-hook-without-read | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/inaccessible-class-constant | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/inaccessible-method | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/inaccessible-property | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/incompatible-constant-override | Reports 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-override | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/incompatible-property-override | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/inconsistent-constructor | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/internal-class-usage | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/internal-constant-access | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/internal-method-call | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/internal-method-callable | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/internal-property-access | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/internal-static-method-call | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/internal-static-method-callable | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/internal-static-property-access | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/invalid-dynamic-constant-fetch | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/invalid-enum | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/invalid-enum-implements | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/invalid-extends | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/invalid-implements | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/invalid-interface-extends | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/invalid-interface-property | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/invalid-method-callable | Checks 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-newPlanned | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/invalid-phpdoc-readonly | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/invalid-promoted-property | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/invalid-property-declaration | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/invalid-property-hook | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/invalid-readonly-property | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/invalid-static-method-callable | Checks 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-implementation | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/missing-parent-constructor-call | | analyse-strictanalyse-max | ✓!±— |
analyse/classes/missing-required-interface | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/missing-required-parent | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/missing-serialize-methods | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/new-as-callable | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/new-static-in-abstract | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/non-public-interface-method | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/private-consistent-constructor | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/read-write-only-property | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/readonly-class-not-supported | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/set-hook-without-assign | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/typed-constant-not-supported | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/uninitialized-phpdoc-readonly | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/uninitialized-property | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/uninitialized-readonly | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/classes/unsafe-new-static | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/comments/invalid-ignore | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/control-flow/break-outside-loop | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/control-flow/non-boolean-condition | | analyse-strictanalyse-max | ✓!±— |
analyse/control-flow/non-boolean-do-while | | analyse-strictanalyse-max | ✓!±— |
analyse/control-flow/non-boolean-elseif | | analyse-strictanalyse-max | ✓!±— |
analyse/control-flow/non-boolean-ternary | | analyse-strictanalyse-max | ✓!±— |
analyse/control-flow/non-boolean-while | | analyse-strictanalyse-max | ✓!±— |
analyse/control-flow/switch-type-mismatch | | analyse-strictanalyse-max | ✓!±— |
analyse/control-flow/unhandled-match | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/dead-code/boolean-and-always-constant | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/dead-code/boolean-not-always-constant | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/dead-code/boolean-or-always-constant | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/dead-code/call-condition-always-constant | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/dead-code/discarded-function-result | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/dead-code/discarded-method-result | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/dead-code/discarded-static-method-result | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/dead-code/do-while-always-constant | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/dead-code/elseif-always-constant | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/dead-code/finally-overrides-exit | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/dead-code/if-always-constant | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/dead-code/impossible-in-array | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/dead-code/impossible-instanceof | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/dead-code/impossible-method-type-check | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/dead-code/impossible-static-type-check | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/dead-code/impossible-type-check | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/dead-code/loose-comparison-always-constant | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/dead-code/number-comparison-always-constant | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/dead-code/pure-function-result-unused | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/dead-code/pure-method-result-unused | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/dead-code/pure-new-result-unused | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/dead-code/pure-static-method-result-unused | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/dead-code/redundant-null-coalesce | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/dead-code/sort-without-effect | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/dead-code/strict-comparison-always-constant | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/dead-code/switch-always-constant | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/dead-code/ternary-always-constant | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/dead-code/trait-condition-always-constant | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/dead-code/unused-argument | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/dead-code/unused-function-parameter | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/dead-code/unused-function-result | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/dead-code/unused-method-parameter | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/dead-code/unused-method-result | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/dead-code/unused-new-result | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/dead-code/unused-private-property | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/dead-code/unused-static-method-result | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/dead-code/unused-trait | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/dead-code/unused-variable | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/dead-code/useless-return-value | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/dead-code/while-always-false | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/dead-code/while-always-true | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/dead-code/xor-always-constant | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/debug/assert-type | Reports 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-typePlanned | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/debug/dump-phpdoc-type | Reports each argument's inferred type as PHPDoc. Ignore comments and baselines cannot suppress these diagnostics. | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/debug/dump-scopePlanned | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/debug/dump-type | Reports 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/class | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/deprecated/class-constant | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/deprecated/constant | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/deprecated/function | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/deprecated/ini-option | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/deprecated/method | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/deprecated/property | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/deprecated/to-string | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/functions/closure-uses-this | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/functions/conflicting-filter-var-flags | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/functions/duplicate-parameter | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/functions/internal-function-call | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/functions/internal-function-callable | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/functions/invalid-callable-call | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/functions/invalid-closure-use | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/functions/invalid-first-class-callable | Reports unknown named functions and non-callable expressions used in first-class callable syntax. | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/functions/invalid-parameter-name | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/functions/invalid-pure | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/functions/invalid-pure-method | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/functions/invalid-pure-property-hook | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/functions/invalid-vprintf-arguments | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/functions/printf-placeholder-count | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/functions/unanalysed-inner-function | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/functions/variadic-not-last | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/imports/name-already-in-use | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/laravel/config-collection | | analyse-strictanalyse-max | ✓!±— |
analyse/laravel/deferrable-provider-missing-provides | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/laravel/missing-translation | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/laravel/no-auth-facade-in-request-scope | | analyse-strictanalyse-max | ✓!±— |
analyse/laravel/no-auth-helper-in-request-scope | | analyse-strictanalyse-max | ✓!±— |
analyse/laravel/no-env-outside-config | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/laravel/no-model-make | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/laravel/octane-compatibility | | analyse-strictanalyse-max | ✓!±— |
analyse/laravel/redundant-collection-call | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/laravel/redundant-to-array-call | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/laravel/undefined-console-input | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/laravel/undefined-model-append | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/laravel/undefined-relation | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/laravel/unexpected-dispatch-arguments | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/laravel/unused-view | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/operators/non-boolean-and-operand | | analyse-strictanalyse-max | ✓!±— |
analyse/operators/non-boolean-not-operand | | analyse-strictanalyse-max | ✓!±— |
analyse/operators/non-boolean-or-operand | | analyse-strictanalyse-max | ✓!±— |
analyse/operators/non-numeric-addition | | analyse-strictanalyse-max | ✓!±— |
analyse/operators/non-numeric-division | | analyse-strictanalyse-max | ✓!±— |
analyse/operators/non-numeric-exponentiation | | analyse-strictanalyse-max | ✓!±— |
analyse/operators/non-numeric-modulo | | analyse-strictanalyse-max | ✓!±— |
analyse/operators/non-numeric-multiplication | | analyse-strictanalyse-max | ✓!±— |
analyse/operators/non-numeric-post-decrement | | analyse-strictanalyse-max | ✓!±— |
analyse/operators/non-numeric-post-increment | | analyse-strictanalyse-max | ✓!±— |
analyse/operators/non-numeric-pre-decrement | | analyse-strictanalyse-max | ✓!±— |
analyse/operators/non-numeric-pre-increment | | analyse-strictanalyse-max | ✓!±— |
analyse/operators/non-numeric-subtraction | | analyse-strictanalyse-max | ✓!±— |
analyse/operators/non-numeric-unary-minus | | analyse-strictanalyse-max | ✓!±— |
analyse/operators/non-numeric-unary-plus | | analyse-strictanalyse-max | ✓!±— |
analyse/phpdoc/constant-type-mismatch | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/phpdoc/hook-type-mismatch | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/phpdoc/invalid | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/phpdoc/invalid-assert-tag | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/phpdoc/invalid-conditional-return | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/phpdoc/invalid-method-assert-tag | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/phpdoc/invalid-method-conditional-return | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/phpdoc/invalid-method-tag | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/phpdoc/invalid-mixin-tag | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/phpdoc/invalid-param-callable-tag | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/phpdoc/invalid-phpstan-tag | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/phpdoc/invalid-property-tag | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/phpdoc/invalid-require-tag | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/phpdoc/invalid-sealed-tag | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/phpdoc/invalid-trait-method-tag | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/phpdoc/invalid-trait-mixin-tag | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/phpdoc/invalid-trait-property-tag | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/phpdoc/invalid-trait-require-extends | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/phpdoc/invalid-trait-require-implements | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/phpdoc/invalid-trait-type-alias | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/phpdoc/invalid-trait-use-method-tag | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/phpdoc/invalid-trait-use-mixin-tag | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/phpdoc/invalid-trait-use-property-tag | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/phpdoc/invalid-trait-use-type-alias | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/phpdoc/invalid-type-alias | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/phpdoc/invalid-var-tag | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/phpdoc/invalid-var-tag-type | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/phpdoc/misplaced-require-implements | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/phpdoc/property-type-mismatch | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/phpdoc/sealed-on-trait | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/phpdoc/type-mismatch | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/phpdoc/var-tag-type-mismatch | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/statements/invalid-declare-strict-types | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/statements/invalid-empty | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/statements/invalid-isset | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/statements/magic-constant-out-of-context | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/statements/non-capturing-catch-not-supported | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/statements/throw-expression-not-supported | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/strings/invalid-date-interval | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/strings/invalid-date-time | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/argument | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/argument-not-numeric | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/argument-not-stringable | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/arrow-function-nullsafe-by-ref | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/arrow-function-param-default | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/arrow-function-return | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/assign-to-this | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/by-ref-foreach-on-expression | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/call-user-func-argument | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/catch-non-throwable | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/class-constant-value | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/clone-non-object | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/closure-param-default | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/closure-return | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/constant-value | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/dead-catch | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/define-value | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/echo-non-string | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/enum-template-not-allowed | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/foreach-non-iterable | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/foreach-on-empty-array | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/function-return | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/function-variance | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/generator | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/implode-non-string | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/interpolated-non-string | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/invalid-arrow-function-signature | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/invalid-assignment-target | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/invalid-binary-operation | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/invalid-cast | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/invalid-class-generics | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/invalid-class-template | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/invalid-closure-signature | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/invalid-comparison | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/invalid-enum-generics | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/invalid-function-signature | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/invalid-function-template | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/invalid-hook-signature | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/invalid-inc-dec | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/invalid-interface-generics | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/invalid-interface-template | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/invalid-method-signature | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/invalid-method-tag-template | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/invalid-method-template | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/invalid-offset | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/invalid-pipe | Reports 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-assignment | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/invalid-property-type | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/invalid-regex | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/invalid-self-out-tag | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/invalid-throws-tag | Reports @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-template | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/invalid-trait-template | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/invalid-trait-use-generics | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/invalid-unary-operand | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/invalid-union-type | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/invalid-unset | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/invalid-void-cast | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/method-param-default | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/method-variance | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/missing-constant-type | | analyse-strictanalyse-max | ✓!±— |
analyse/types/missing-hook-throws | | analyse-max | ✓!±— |
analyse/types/missing-method-param-type | | analyse-strictanalyse-max | ✓!±— |
analyse/types/missing-method-return-type | | analyse-strictanalyse-max | ✓!±— |
analyse/types/missing-method-throws | | analyse-max | ✓!±— |
analyse/types/missing-param-type | | analyse-strictanalyse-max | ✓!±— |
analyse/types/missing-preg-quote-delimiter | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/missing-property-type | | analyse-strictanalyse-max | ✓!±— |
analyse/types/missing-return | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/missing-return-type | | analyse-strictanalyse-max | ✓!±— |
analyse/types/missing-self-out-type | | analyse-strictanalyse-max | ✓!±— |
analyse/types/missing-throws | | analyse-max | ✓!±— |
analyse/types/nullsafe-by-ref-return | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/offset-assign | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/offset-assign-op | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/offset-assign-value | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/param-default | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/param-out | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/param-out-at-end | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/phpdoc-readonly-by-ref | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/phpdoc-readonly-property-write | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/print-non-string | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/printf-argument | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/property-assign | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/property-default | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/property-variance | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/random-int-range | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/readonly-property-by-ref | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/readonly-property-write | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/redundant-array-values | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/renamed-parameter-in-subtype | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/return | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/return-by-ref-finallyPlanned | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/sort-non-stringable | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/this-in-global | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/this-in-static | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/throw-non-throwable | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/throws-not-covariant | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/throws-void-function | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/throws-void-hook | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/throws-void-method | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/too-wide-arrow-function-return | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/too-wide-closure-return | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/too-wide-function-param-out | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/too-wide-function-return | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/too-wide-method-param-out | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/too-wide-method-return | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/too-wide-property | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/unpack-non-iterable | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/unpack-string-key | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/unused-hook-throws-type | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/unused-method-throws-type | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/unused-throws-type | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/useless-array-filter | | analyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/void-match-used | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/write-to-readonly-property | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/yield-from-non-iterable | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/types/yield-outside-function | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/undefined/assigned-property | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/undefined/assigned-static-property | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/undefined/class-constant | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/undefined/compact-variablePlanned | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/undefined/constant | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/undefined/function | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/undefined/goto-label | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/undefined/group-import | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/undefined/import | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/undefined/include-file | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/undefined/instanceof-class | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/undefined/method | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/undefined/offset | | analyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/undefined/property | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/undefined/static-method | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/undefined/static-property | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/undefined/trait | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |
analyse/undefined/variablePlanned | | analyse-basicanalyse-essentialanalyse-recommendedanalyse-strictanalyse-max | ✓!±— |