From 52c83d99c8d2e1f15a8667ef8badca665d342da6 Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Sat, 11 Jan 2014 15:15:39 +0100 Subject: [PATCH] late static binding --- src/Intervention/Image/Image.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Intervention/Image/Image.php b/src/Intervention/Image/Image.php index 64ac46d6..acda62ed 100644 --- a/src/Intervention/Image/Image.php +++ b/src/Intervention/Image/Image.php @@ -128,7 +128,7 @@ class Image */ public static function make($source) { - return new Image($source); + return new static($source); } /** @@ -141,7 +141,7 @@ class Image */ public static function canvas($width, $height, $bgcolor = null) { - return new Image(null, $width, $height, $bgcolor); + return new static(null, $width, $height, $bgcolor); } /** @@ -152,7 +152,7 @@ class Image */ public static function raw($string) { - return new Image($string); + return new static($string); } /**