1--TEST--
2BcMath\Number calc array by operator
3--EXTENSIONS--
4bcmath
5--FILE--
6<?php
7$num = new BcMath\Number(100);
8$array = [1];
9
10try {
11    $num + $array;
12} catch (Error $e) {
13    echo $e->getMessage() . "\n";
14}
15
16try {
17    $num - $array;
18} catch (Error $e) {
19    echo $e->getMessage() . "\n";
20}
21
22try {
23    $num * $array;
24} catch (Error $e) {
25    echo $e->getMessage() . "\n";
26}
27
28try {
29    $num / $array;
30} catch (Error $e) {
31    echo $e->getMessage() . "\n";
32}
33
34try {
35    $num % $array;
36} catch (Error $e) {
37    echo $e->getMessage() . "\n";
38}
39
40try {
41    $num ** $array;
42} catch (Error $e) {
43    echo $e->getMessage() . "\n";
44}
45?>
46--EXPECT--
47Unsupported operand types: BcMath\Number + array
48Unsupported operand types: BcMath\Number - array
49Unsupported operand types: BcMath\Number * array
50Unsupported operand types: BcMath\Number / array
51Unsupported operand types: BcMath\Number % array
52Unsupported operand types: BcMath\Number ** array
53