Inspectopedia Help

General

'n' modifier can be replaced with non-capturing groups   New in this release

Reports n PCRE modifier, that can be replaced with usage of non-capturing groups instead of capturing in regexp pattern.

Argument with name identifier   New in this release

Reports arguments with name identifiers.

Argument without name identifier   New in this release

Reports arguments without name identifiers.

Array index is immediately rewritten   New in this release

Reports the write expressions on array indexes which are immediately overwritten before being accessed.

Class can't implement Traversable directly   New in this release

Reports the classes that are implementing the Traversable interface alone, not as part of Iterator or IteratorAggregate interfaces.

Class hierarchy checks   New in this release

Checks the classes' hierarchy: abstract methods implementation, the compatibility of implementing/overriding methods with their declarations in parent classes, and properties' types redeclarations.

Class static member accessed via instance   New in this release

Reports references to static methods and fields via a class instance rather than the class itself.

Curly brace access syntax usage   New in this release

Reports the usages of curly brace syntax for accessing array elements and string offsets.

Deprecated   New in this release

Reports the usages of deprecated entities.

Deprecated '${' string interpolation   New in this release

Reports ${var} and ${expr} interpolations in strings.

Deprecated 'Serializable' interface usage   New in this release

Reports the usages of deprecated Serializable interface.

Deprecated '__autoload()' function declaration   New in this release

Reports the __autoload() function declarations.

Deprecated 'assert()' function declaration   New in this release

Reports the assert() function declarations.

Deprecated 'implode/join' usage   New in this release

Reports deprecated usage of the implode and join functions.

Deprecated Standard Library call   New in this release

Reports the calls to Standard PHP Library functions that are deprecated starting from PHP 8.1.

Deprecated cast   New in this release

Reports deprecated cast expressions: (unset) cast expressions, which are deprecated in PHP 7.2 and later.

Deprecated partially supported callables   New in this release

Reports deprecated usage of callables that are supported by call_user_func($callable), but not by $callable().

Disabled extension stubs   New in this release

Reports the usages of classes, functions, and constants, for which the stubs for the corresponding PHP interpreter extensions are disabled.

Doctrine annotation can be replaced with attribute   New in this release

Suggests replacing Doctrine annotations with attributes.

Dynamic method called as static   New in this release

Reports static calls to dynamic class methods.

Element is not available in configured PHP version   New in this release

Reports the usages of entities which were introduced in PHP version later than configured one.

Ignored class alias declaration   New in this release

Reports the class alias declarations that are ignored by the IDE because the actual class declaration with the same FQN exists.

Incorrect magic method signature   New in this release

Reports incompatible magic methods signatures.

Invalid magic method modifiers   New in this release

Reports the magic methods that are not declared as public or are declared as static.

Language level   New in this release

Reports the language features used in source code that are not supported for the selected language level.

Member reference chain is too long to analyze   New in this release

Reports method reference chains that are too long for IDE to analyze.

Method declaration in parent class is incompatible with implemented interface   New in this release

Reports the methods declarations in parent classes that are incompatible with implemented interfaces.

Named argument may be unresolved   New in this release

Reports the named arguments in method calls that might be unresolved depending on a specific class instance within the hierarchy.

Nested ternary operator usage   New in this release

Reports nested ternary expressions, which are deprecated starting from PHP 7.4.

Overriding method/extending class marked as '@final'   New in this release

Reports override of method or extending of class with @final in the PHPDoc.

Parameter's name changed during inheritance   New in this release

Reports the methods' parameters whose names differ from the same parameters defined in parent methods.

Promoted property usage   New in this release

Reports properties declared through promoted constructor parameters.

Property can be 'readonly'   New in this release

Reports the private promoted properties that are never written to.

Property can be promoted   New in this release

Reports the properties that can be replaced with promoted versions.

Property is immediately rewritten   New in this release

Reports the write expressions on properties which are immediately overwritten before being accessed.

Second write to 'readonly' property   New in this release

Reports reassignments of readonly properties.

Static method called as dynamic   New in this release

Reports dynamic calls to static class methods.

Symfony annotation can be replaced with attribute   New in this release

Suggests replacing Symfony annotations with attributes.

Unpacking arrays with string keys is forbidden for PHP < 8.1   New in this release

Reports array unpacking with string keys in PHP < 8.1 See Array unpacking with string keys for details.

Unresolved include   New in this release

Reports non-resolved include, include_once, require, and require_once expressions.

Usage of internal entity   New in this release

Reports the usages of the entities that are marked as @internal and are located in different source roots.

Write access to 'readonly' property outside of declaration scope   New in this release

Reports the write accesses to readonly properties that are made outside the declaration scope.

Last modified: 11 September 2024