PHP error category
Arrays
Array keys, offsets, and shapes.
Arrays errors arise when array keys, offsets, and shapes affect an executing PHP application or its supporting service. Use the exact signature and runtime context to narrow the cause before changing configuration.
The guides in this category separate code defects from environment differences, show focused diagnostics, and favor site-scoped corrections that preserve unrelated applications.
Guides in this category
| Title | Pattern | Severity |
|---|---|---|
| Array to string conversion | Warning: Array to string conversion in %s on line %d |
warning |
| Trying to access array offset on null | Warning: Trying to access array offset on null in %s on line %d |
warning |
| Trying to access array offset on value of type bool | Warning: Trying to access array offset on value of type bool in %s on line %d |
warning |
| Trying to access array offset on value of type int | Warning: Trying to access array offset on value of type int in %s on line %d |
warning |
| Undefined array key | Warning: Undefined array key "%s" in %s on line %d |
warning |
| Undefined index | Notice: Undefined index: email in %s on line %d |
notice |
| Undefined offset | Notice: Undefined offset: 4 in %s on line %d |
notice |