Skip to content

Commit 617ce5d

Browse files
committed
update test from feedback
1 parent 5d6d4cf commit 617ce5d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

ext/gd/tests/imagecrop_overflow.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,31 @@ gd
66
<?php
77
$img = imagecreatetruecolor(10, 10);
88

9-
$arr = array("x" => 2147483647, "y" => 2147483647, "width" => 10, "height" => 10);
9+
$arr = ["x" => 2147483647, "y" => 2147483647, "width" => 10, "height" => 10];
1010

1111
try {
1212
imagecrop($img, $arr);
1313
} catch (\ValueError $e) {
1414
echo $e->getMessage() . PHP_EOL;
1515
}
1616

17-
$arr = array("x" => -2147483648, "y" => 0, "width" => -10, "height" => 10);
17+
$arr = ["x" => -2147483648, "y" => 0, "width" => -10, "height" => 10];
1818

1919
try {
2020
imagecrop($img, $arr);
2121
} catch (\ValueError $e) {
2222
echo $e->getMessage() . PHP_EOL;
2323
}
2424

25-
$arr = array("x" => 1, "y" => 2147483647, "width" => 10, "height" => 10);
25+
$arr = ["x" => 1, "y" => 2147483647, "width" => 10, "height" => 10];
2626

2727
try {
2828
imagecrop($img, $arr);
2929
} catch (\ValueError $e) {
3030
echo $e->getMessage() . PHP_EOL;
3131
}
3232

33-
$arr = array("x" => 1, "y" => -2147483648, "width" => 10, "height" => -10);
33+
$arr = ["x" => 1, "y" => -2147483648, "width" => 10, "height" => -10];
3434

3535
try {
3636
imagecrop($img, $arr);

0 commit comments

Comments
 (0)