Messages
Code style
- Non-static access to static member
- Accessing static property {0}::{1} as non static
- Non-static method called statically
- Non-static method {0}::{1}() cannot be called statically
- Non-static method {0}::{1}() should not be called statically
Potential programming problems
- Unresolved classes/interfaces
- Class ''{0}'' not found
- Interface ''{0}'' not found
- Unresolved class of {0}
- Unresolved methods
- Undefined method {0}::{1}()
- Unresolved fields
- Undefined property {0}::{1}
- Undefined class constant {0}::{1}
- Unresolved property {0}::{1}
- Access to undeclared static property {0}::{1}
- Unresolved functions
- Redeclared classes/interfaces
- Cannot redeclare class {0}
- Redeclared methods
- Cannot redeclare {0}::{1}()
- Redeclared fields
- Cannot redefine class constant {0}::{1}
- Cannot redeclare {0}::{1}
- Redeclared functions
- 'switch' case fall-through
- 'switch' case fall-through
- Missing arguments
- Missing argument {0} for {1}()
- Incompatible method
- Declaration of {0}::{1}() should be compatible with that of {2}::{1}()
- Override final method
- Cannot override final method {0}::{1}()
- Include file not found
- Filename cannot be empty
- Include file {0} not found
- Uninitialized variable
- {0} may not be initialized
- Miscellaneous error
- Access level to {0}::{1}() must be {2} (as in class {3}){4}
- Arrays are not allowed in class constants
- Cannot call __clone() method on objects - use ''clone $obj'' instead
- Cannot declare property {0}::{1} final, the final modifier is allowed only for methods and classes
- Can''t inherit abstract function {0}::{1}() (previously declared abstract in {2})
- Cannot make non abstract method {0}::{1}() abstract in class {2}
- Cannot make non static method {0}::{1}() static in class {2}
- Cannot make static method {0}::{1}() non static in class {2}
- Cannot override final {0}::{1}() with {2}::{3}()
- Cannot re-assign $this
- Cannot use ''{0}'' as class name as it is reserved
- Cannot use ''{0}'' as interface name as it is reserved
- Cannot use the final modifier on an abstract class member
- Class {0} may not inherit from final class ({1})
- Clone method {0}::{1}() cannot be static
- Constructor {0}::{1}() cannot be static
- Default value for parameters with a class type hint can only be NULL
- Default value for parameters with array type hint can only be an array or NULL
- Destructor {0}::{1}() cannot be static
- Interfaces may not include member variables
- Key element cannot be a reference
- Multiple {0} modifiers are not allowed
- Multiple access type modifiers are not allowed
- Non-abstract method {0}::{1}() must contain body
- Properties cannot be declared abstract
- {0} cannot implement {1} - it is not an interface
- {0} function {1}::{2}() cannot be declared private
- {0} function {1}::{2}() cannot contain body
- Access level to {0}::{1} must be {2} (as in class {3}){4}
- Call to private method {0}::{1}()
- Call to protected method {0}::{1}()
- Cannot access {0}:: when no class scope is active
- Cannot access parent:: when current class scope has no parent
- Cannot access private property {0}::{1}
- Cannot access protected property {0}::{1}
- Cannot call abstract method {0}::{1}()
- Cannot instantiate abstract class {0}
- Cannot redeclare {0}{1}::${2} as {3}{4}::${5}
- Destructor {0}::{1}() cannot take arguments
- Method {0}::{1}() cannot accept any arguments
- Method {0}::{1}() cannot take arguments by reference
- Method {0}::{1}() cannot take arguments
- Method {0}::{1}() must take exactly 1 argument
- Method {0}::{1}() must take exactly 2 arguments
- Miscellaneous warning
- The magic method __call() must have public visibility and cannot be static
- The magic method __callStatic() must have public visibility and be static
- The magic method __get() must have public visibility and cannot be static
- The magic method __isset() must have public visibility and cannot be static
- The magic method __set() must have public visibility and cannot be static
- The magic method __toString() must have public visibility and cannot be static
- The magic method __unset() must have public visibility and cannot be static
- Miscellaneous strict
- Redefining already defined constructor for class {0}
- Static function {0}::{1}() should not be abstract
Deprecation
- Deprecated methods/functions
Unnecessary code
- Local variable is never read
- Local variable {0} is never read
- Parameter is not used
- Parameter {0} is not used
- Unused private member
- Private property {0}::{1} is never read