From ae3d7d57df4e3722669d0f007ec404d9f8e584c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Sat, 2 Jan 2016 14:44:53 +0100 Subject: [PATCH 1/2] Fix: Case-insensitive method call --- src/Intervention/Image/Imagick/Driver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Intervention/Image/Imagick/Driver.php b/src/Intervention/Image/Imagick/Driver.php index b8bfef48..7260560c 100644 --- a/src/Intervention/Image/Imagick/Driver.php +++ b/src/Intervention/Image/Imagick/Driver.php @@ -40,7 +40,7 @@ class Driver extends \Intervention\Image\AbstractDriver $core = new \Imagick; $core->newImage($width, $height, $background->getPixel(), 'png'); $core->setType(\Imagick::IMGTYPE_UNDEFINED); - $core->setImagetype(\Imagick::IMGTYPE_UNDEFINED); + $core->setImageType(\Imagick::IMGTYPE_UNDEFINED); $core->setColorspace(\Imagick::COLORSPACE_UNDEFINED); // build image From 9e3ba9ebbb062f94f3e373c7fae0c2c770c01c50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Sat, 2 Jan 2016 14:46:00 +0100 Subject: [PATCH 2/2] Fix: Case-insensitive class names --- tests/AbstractDecoderTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/AbstractDecoderTest.php b/tests/AbstractDecoderTest.php index a55a4439..0d6d08e0 100644 --- a/tests/AbstractDecoderTest.php +++ b/tests/AbstractDecoderTest.php @@ -14,7 +14,7 @@ class AbstractDecoderTest extends PHPUnit_Framework_TestCase $source = $this->getTestDecoder(new \Imagick); $this->assertTrue($source->isImagick()); - $source = $this->getTestDecoder(new StdClass); + $source = $this->getTestDecoder(new stdClass); $this->assertFalse($source->isImagick()); $source = $this->getTestDecoder(null); @@ -45,7 +45,7 @@ class AbstractDecoderTest extends PHPUnit_Framework_TestCase $source = $this->getTestDecoder(array()); $this->assertFalse($source->isFilepath()); - $source = $this->getTestDecoder(new StdClass); + $source = $this->getTestDecoder(new stdClass); $this->assertFalse($source->isFilepath()); } @@ -84,7 +84,7 @@ class AbstractDecoderTest extends PHPUnit_Framework_TestCase $source = $this->getTestDecoder(array(1,2,3)); $this->assertFalse($source->isBinary()); - $source = $this->getTestDecoder(new StdClass); + $source = $this->getTestDecoder(new stdClass); $this->assertFalse($source->isBinary()); }