InvalidOperand
An operator is applied to incompatible types.
Example
Section titled “Example”<?php$result = [] + 5; // array + int is not validHow to fix
Section titled “How to fix”Ensure both operands are of compatible types for the operator used.