Commit 7efdad9c by Antonio Ramirez

remove use of dumb static variable

parent 0efe892f
...@@ -115,11 +115,7 @@ class Image extends Component ...@@ -115,11 +115,7 @@ class Image extends Component
*/ */
public function getAvailableDrivers() public function getAvailableDrivers()
{ {
static $drivers; return [static::DRIVER_GD2, static::DRIVER_GMAGICK, static::DRIVER_IMAGICK];
if ($drivers === null) {
$drivers = [static::DRIVER_GD2, static::DRIVER_GMAGICK, static::DRIVER_IMAGICK];
}
return $drivers;
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment