Welcome to PHP error messages database!¶
- PHP Error Messages
- A class constant must not be called class. it is reserved for class name fetching
- A function with return type must return a value
- A never-returning function must not return
- A never-returning method must not return
- A non-numeric value encountered
- Array and string offset access syntax with curly braces is deprecated
- Array and string offset access syntax with curly braces is no longer supported
- Array callback has to contain indices 0 and 1
- array_merge() does not accept unknown named parameters
- Assignments can only happen to writable values
- Attempt to unset static property X::$x
- Attempt to unset static property
- Automatic conversion of false to array is deprecated
- b cannot implement a - it is not an interface
- break operator accepts only positive integers
- Call to a member function method() on string
- Call to undefined function
- Cannot access trait constant t::X directly
- Cannot declare promoted property outside a constructor
- Cannot instantiate trait t
- Cannot make non abstract method i::foo() abstract in class j
- Cannot mix keyed and unkeyed array entries in assignments
- Cannot unset offset in a non-array variable
- Cannot unset string offsets
- Cannot use ‘readonly’ as method modifier
- Cannot use ::class with dynamic class name
- Cannot use [] for reading
- Cannot use empty array elements in arrays
- Cannot use empty list
- Cannot use lexical variable $x as a parameter name
- Cannot use list() as standalone expression
- Cannot use object of type stdClass as array
- Cannot use positional argument after argument unpacking
- Cannot use positional argument after named argument
- Cannot use temporary expression in write context
- Cannot use try without catch or finally
- Class foo cannot implement previously implemented interface i
- Constant expression contains invalid operations
- Constructors cannot declare a return type
- continue operator accepts only positive integers
- DateTimeInterface can’t be implemented by user classes
- define(): Argument #3 ($case_insensitive) is ignored since declaration of case-insensitive constants is no longer supported
- define(): Declaration of case-insensitive constants is deprecated
- Destructors cannot declare a return type
- Duplicate named parameter $%s
- Duplicate type false is redundant
- Fetching properties on non-enums in constant expressions is not allowed
- FFI API is restricted by “ffi.enable” configuration directive
- foreach() argument must be of type array|object
- has #[Override] attribute, but no matching parent method exists
- illegal string offset
- Implicit conversion from float-string “%s” to int loses precision
- Implicitly marking parameter $%s as nullable is deprecated, the explicit nullable type must be used instead
- Increment on type bool has no effect, this will change in the next major version of PHP
- Indirect modification of overloaded element of %s has no effect
- Indirect modification of overloaded property %s::$%s has no effect
- Invalid argument supplied for foreach()
- ‘%s’ is an invalid class name
- Keys must be of type int|string during argument unpacking .
- Keys must be of type int|string during array unpacking
- Named parameter $x overwrites previous argument
- never cannot be used as a parameter type
- never-returning function must not implicitly return
- New expressions are not supported in this context
- Non-static method x::goo() cannot be called statically
- Only variable references should be yielded by reference
- Optional parameter $a declared before required parameter $b is implicitly treated as a required parameter
- Private methods cannot be final as they are never overridden by other classes
- Property x::$p cannot have type void
- Readonly class Bar cannot extend non-readonly class Foo
- Redefinition of parameter $b
- Required parameter $%s follows optional parameter $%s
- Required Trait T2 wasn't added to C
- Required Trait T2 wasn't added to C
- Return value must be of type int, string returned
- Static property x::$y cannot be readonly
- The (unset) cast is deprecated
- The (unset) cast is no longer supported
- Traits cannot have constants
- Typed property %s::$%s must not be accessed before initialization
- Typed property x::$y must not be accessed before initialization
- Typed static property x::$y must not be accessed before initialization
- Undefined array key
- Undefined offset
- Undefined variable
- Uninitialized string offset
- Unsupported operand types
- Using $this when not in object context
- Using (variable variables) in strings is deprecated, use {} instead
- void cannot be used as a parameter type
- X::foo() has #[Override] attribute, but no matching parent method exists