Skip to content

Commit

Permalink
Merge pull request #26 from darrynten/fix/image-layer-from-string
Browse files Browse the repository at this point in the history
Fix for creating ImageLayer with a string
  • Loading branch information
darrynten committed Mar 17, 2018
2 parents 6c62258 + 75ee5ed commit 6c73875
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 1 addition & 3 deletions src/Layers/Layer/ImageLayer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 6c73875

Please sign in to comment.