1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-06 13:56:30 +02:00

late static binding

This commit is contained in:
Oliver Vogel
2014-01-11 15:15:39 +01:00
parent 025f0f777f
commit 52c83d99c8

View File

@@ -128,7 +128,7 @@ class Image
*/ */
public static function make($source) 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) 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) public static function raw($string)
{ {
return new Image($string); return new static($string);
} }
/** /**