Error Message index¶
- (expression)::class cannot be used in constant expressions
- A function with return type must return a value
- A never-returning method must not return
- A non-numeric value encountered
- A void function must not return a value (did you mean “return;” instead of “return null;”?)
- Argument #1 must not be empty
- Array callback has to contain indices 0 and 1
- Array callback must have exactly two elements
- Cannot access offset of type A on array
- Cannot assign %s to property %s::$%s of type %s
- Cannot assign %s to reference held by property %s::$%s of type %s
- Cannot call constructor
- Cannot create Closure for new expression
- Cannot declare self-referencing constant x::A
- Cannot decrement property %s::$%s of type int past its minimal value
- Cannot increment property %s::$%s of type int past its maximal value
- Cannot indirectly modify readonly property %s::$%s
- Cannot re-assign auto-global variable %s
- Cannot rebind scope of closure created from method
- Cannot redefine class constant X::B
- Cannot rewind a generator that was already run
- Cannot unpack array with string keys
- Cannot use “parent” when no class scope is active
- Cannot use ‘namespace’ as namespace name
- Cannot use [] for reading
- Cannot use int as value for class constant x::A of type string
- Cannot use isset() on the result of an expression (you can use “null !== expression” instead)
- Cannot use object of type stdClass as array
- Cannot use positional argument after argument unpacking
- Cannot use the %s modifier on a %s
- Class “%s” not found
- Class %s contains %d abstract method%s and must therefore be declared abstract or implement the remaining methods
- Constant expression contains invalid operations
- Declaration of %s must be compatible with %s
- Declaration of %s::%s() must be compatible with %s::%s
- Declaration of b::__construct() must be compatible with a::__construct($a)
- Declaration of x::foo() must be compatible with i::foo($k, $j, $l)
- Declaration of x::foo() must be compatible with i::foo(): int
- Declaration of y4::foo($b, $c, $d) must be compatible with x4::foo($a, $b)
- Duplicate type array is redundant
- Duplicate value in enum E for cases A and B
- Implicit conversion from float 1.1 to int loses precision
- Incompatible readonly
- Increment on non-alphanumeric string is deprecated
- Invalid UTF-8 codepoint escape
- Multiple static modifiers are not allowed
- Non-static method %s::%s() cannot be called statically
- Non-static method a::foo() cannot be called statically
- Object casts are not supported in this context
- Object of class %s could not be converted to string
- Object of class E could not be converted to string
- Object of class stdClass could not be converted to string
- Only basic entities substitution is supported for multi-byte encodings other than UTF-8; functionality is equivalent to htmlspecialchars
- Only variables should be passed by reference
- Recursion detected
- Return value must be of type int, float returned
- Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero
- Trying to access array offset on false
- Trying to access array offset on null
- Trying to access array offset on true
- Typed property %s::$%s must not be accessed before initialization
- Typed property X::$x must not be accessed before initialization
- Typed property x::$y must not be accessed before initialization
- Undefined global variable %s
- Undefined property
- Undefined variable
- Undefined variable %s
- Unhandled case NULL
- Unknown named parameter $%s
- Unsupported operand types: int & string
- Unsupported operand types: string + int
- Using “_” as a class name is deprecated since 8.4
- Using $this when not in object context
- array_merge() does not accept unknown named parameters
- exponent cannot have a fractional part
- never-returning function must not implicitly return
- syntax error, unexpected token “(int)”
- syntax error, unexpected token “;”
- syntax error, unexpected token “exit”, expecting identifier