Skip to content

Commit ccffbaf

Browse files
committed
update test
1 parent 32c5b78 commit ccffbaf

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

ext/gd/tests/gh18005.phpt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ try {
2121
echo $e->getMessage() . PHP_EOL;
2222
}
2323
try {
24-
imagefilter($img, IMG_FILTER_SCATTER, 0, 0, array(new A()));
24+
imagefilter($img, IMG_FILTER_SCATTER, 0, 0, [new A()]);
2525
} catch (\ValueError $e) {
2626
echo $e->getMessage() . PHP_EOL;
2727
}
2828
try {
29-
imagefilter($img, IMG_FILTER_SCATTER, 0, 0, array(-1));
29+
imagefilter($img, IMG_FILTER_SCATTER, 0, 0, [-1]);
3030
} catch (\ValueError $e) {
3131
echo $e->getMessage() . PHP_EOL;
3232
}
@@ -36,38 +36,38 @@ try {
3636
echo $e->getMessage() . PHP_EOL;
3737
}
3838
try {
39-
imagecrop($img, array("x" => 0, "y" => PHP_INT_MIN, "width" => 0, "height" => 0));
39+
imagecrop($img, ["x" => 0, "y" => PHP_INT_MIN, "width" => 0, "height" => 0]);
4040
} catch (\ValueError $e) {
4141
echo $e->getMessage() . PHP_EOL;
4242
}
4343
try {
44-
imagecrop($img, array("x" => 0, "y" => 0, "width" => PHP_INT_MAX, "height" => 0));
44+
imagecrop($img, ["x" => 0, "y" => 0, "width" => PHP_INT_MAX, "height" => 0]);
4545
} catch (\ValueError $e) {
4646
echo $e->getMessage() . PHP_EOL;
4747
}
4848
try {
49-
imagecrop($img, array("x" => 0, "y" => 0, "width" => 0, "height" => PHP_INT_MAX));
49+
imagecrop($img, ["x" => 0, "y" => 0, "width" => 0, "height" => PHP_INT_MAX]);
5050
} catch (\ValueError $e) {
5151
echo $e->getMessage() . PHP_EOL;
5252
}
5353

5454
try {
55-
imagecrop($img, array("x" => new A(), "y" => 0, "width" => 0, "height" => 0));
55+
imagecrop($img, ["x" => new A(), "y" => 0, "width" => 0, "height" => 0]);
5656
} catch (\ValueError $e) {
5757
echo $e->getMessage() . PHP_EOL;
5858
}
5959
try {
60-
imagecrop($img, array("x" => 0, "y" => new A(), "width" => 0, "height" => 0));
60+
imagecrop($img, ["x" => 0, "y" => new A(), "width" => 0, "height" => 0]);
6161
} catch (\ValueError $e) {
6262
echo $e->getMessage() . PHP_EOL;
6363
}
6464
try {
65-
imagecrop($img, array("x" => 0, "y" => 0, "width" => new A(), "height" => 0));
65+
imagecrop($img, ["x" => 0, "y" => 0, "width" => new A(), "height" => 0]);
6666
} catch (\ValueError $e) {
6767
echo $e->getMessage() . PHP_EOL;
6868
}
6969
try {
70-
imagecrop($img, array("x" => 0, "y" => 0, "width" => 0, "height" => new A()));
70+
imagecrop($img, ["x" => 0, "y" => 0, "width" => 0, "height" => new A()]);
7171
} catch (\ValueError $e) {
7272
echo $e->getMessage();
7373
}

0 commit comments

Comments
 (0)