|
6 | 6 | <?php |
7 | 7 | $img = imagecreatetruecolor(10, 10); |
8 | 8 |
|
9 | | -$arr = array("x" => 2147483647, "y" => 2147483647, "width" => 10, "height" => 10); |
| 9 | +$arr = ["x" => 2147483647, "y" => 2147483647, "width" => 10, "height" => 10]; |
10 | 10 |
|
11 | 11 | try { |
12 | 12 | imagecrop($img, $arr); |
13 | 13 | } catch (\ValueError $e) { |
14 | 14 | echo $e->getMessage() . PHP_EOL; |
15 | 15 | } |
16 | 16 |
|
17 | | -$arr = array("x" => -2147483648, "y" => 0, "width" => -10, "height" => 10); |
| 17 | +$arr = ["x" => -2147483648, "y" => 0, "width" => -10, "height" => 10]; |
18 | 18 |
|
19 | 19 | try { |
20 | 20 | imagecrop($img, $arr); |
21 | 21 | } catch (\ValueError $e) { |
22 | 22 | echo $e->getMessage() . PHP_EOL; |
23 | 23 | } |
24 | 24 |
|
25 | | -$arr = array("x" => 1, "y" => 2147483647, "width" => 10, "height" => 10); |
| 25 | +$arr = ["x" => 1, "y" => 2147483647, "width" => 10, "height" => 10]; |
26 | 26 |
|
27 | 27 | try { |
28 | 28 | imagecrop($img, $arr); |
29 | 29 | } catch (\ValueError $e) { |
30 | 30 | echo $e->getMessage() . PHP_EOL; |
31 | 31 | } |
32 | 32 |
|
33 | | -$arr = array("x" => 1, "y" => -2147483648, "width" => 10, "height" => -10); |
| 33 | +$arr = ["x" => 1, "y" => -2147483648, "width" => 10, "height" => -10]; |
34 | 34 |
|
35 | 35 | try { |
36 | 36 | imagecrop($img, $arr); |
|
0 commit comments