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:
parent
025f0f777f
commit
52c83d99c8
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user