1
0
mirror of https://github.com/Intervention/image.git synced 2025-01-17 20:28:21 +01: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)
{
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);
}
/**