--TEST-- TypeError for compound assignment operations --FILE-- getMessage(), "\n"; } try { $x -= "1"; } catch (TypeError $e) { echo $e->getMessage(), "\n"; } try { $x *= "1"; } catch (TypeError $e) { echo $e->getMessage(), "\n"; } try { $x /= "1"; } catch (TypeError $e) { echo $e->getMessage(), "\n"; } try { $x **= "1"; } catch (TypeError $e) { echo $e->getMessage(), "\n"; } try { $x %= "1"; } catch (TypeError $e) { echo $e->getMessage(), "\n"; } try { $x <<= "1"; } catch (TypeError $e) { echo $e->getMessage(), "\n"; } try { $x >>= "1"; } catch (TypeError $e) { echo $e->getMessage(), "\n"; } ?> --EXPECT-- Unsupported operand types: array + string Unsupported operand types: array - string Unsupported operand types: array * string Unsupported operand types: array / string Unsupported operand types: array ** string Unsupported operand types: array % string Unsupported operand types: array << string Unsupported operand types: array >> string