From 5c95ff6ab70e4f7103c17646ea56a3ba91bcb6dd Mon Sep 17 00:00:00 2001 From: Darryn Ten Date: Sat, 17 Mar 2018 14:43:05 +0200 Subject: [PATCH 1/2] Fix for creating ImageLayer with a string --- src/Layers/Layer/ImageLayer.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Layers/Layer/ImageLayer.php b/src/Layers/Layer/ImageLayer.php index 57943f9..269a0f3 100644 --- a/src/Layers/Layer/ImageLayer.php +++ b/src/Layers/Layer/ImageLayer.php @@ -43,9 +43,7 @@ public function __construct(array $config) $this->canvas = $temp; } else { - $this->image( - !empty($config['image']) ? $config['image'] : null - ); + $this->canvas = !empty($config['image']) ? $config['image'] : null; } } From 75ee5ed2b195d7c38fac43ba0aeccce2a02715c2 Mon Sep 17 00:00:00 2001 From: Darryn Ten Date: Sat, 17 Mar 2018 15:50:48 +0200 Subject: [PATCH 2/2] Version bump --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index ea98a0e..988f5c1 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "darrynten/pslayers", "description": "PHP Imagick Layers", - "version": "1.0.1", + "version": "1.0.2", "type": "library", "require": { "php": "^7.0",