diff --git a/tests/Unit/Drivers/Imagick/ImageTest.php b/tests/Unit/Drivers/Imagick/ImageTest.php index abb628c6..def933fb 100644 --- a/tests/Unit/Drivers/Imagick/ImageTest.php +++ b/tests/Unit/Drivers/Imagick/ImageTest.php @@ -373,12 +373,12 @@ final class ImageTest extends ImagickTestCase $result = $image->pixelate(10); $this->assertInstanceOf(ImageInterface::class, $result); - list($r, $g, $b) = $image->pickColor(0, 0)->toArray(); + [$r, $g, $b] = $image->pickColor(0, 0)->toArray(); $this->assertEquals(0, $r); $this->assertEquals(174, $g); $this->assertEquals(240, $b); - list($r, $g, $b) = $image->pickColor(14, 14)->toArray(); + [$r, $g, $b] = $image->pickColor(14, 14)->toArray(); $this->assertEquals(107, $r); $this->assertEquals(171, $g); $this->assertEquals(140, $b); diff --git a/tests/Unit/Drivers/Imagick/Modifiers/PixelateModifierTest.php b/tests/Unit/Drivers/Imagick/Modifiers/PixelateModifierTest.php index ce897587..b12f588e 100644 --- a/tests/Unit/Drivers/Imagick/Modifiers/PixelateModifierTest.php +++ b/tests/Unit/Drivers/Imagick/Modifiers/PixelateModifierTest.php @@ -21,12 +21,12 @@ final class PixelateModifierTest extends ImagickTestCase $this->assertEquals('00aef0', $image->pickColor(14, 14)->toHex()); $image->modify(new PixelateModifier(10)); - list($r, $g, $b) = $image->pickColor(0, 0)->toArray(); + [$r, $g, $b] = $image->pickColor(0, 0)->toArray(); $this->assertEquals(0, $r); $this->assertEquals(174, $g); $this->assertEquals(240, $b); - list($r, $g, $b) = $image->pickColor(14, 14)->toArray(); + [$r, $g, $b] = $image->pickColor(14, 14)->toArray(); $this->assertEquals(107, $r); $this->assertEquals(171, $g); $this->assertEquals(140, $b);