mirror of
https://github.com/Intervention/image.git
synced 2025-08-26 07:14:31 +02:00
Add PHP8 GDImage object support
This commit is contained in:
@@ -16,8 +16,9 @@ class ResetCommand extends AbstractCommand
|
|||||||
public function execute($image)
|
public function execute($image)
|
||||||
{
|
{
|
||||||
$backupName = $this->argument(0)->value();
|
$backupName = $this->argument(0)->value();
|
||||||
|
$backup = $image->getBackup($backupName)
|
||||||
if (is_resource($backup = $image->getBackup($backupName))) {
|
|
||||||
|
if (is_resource($backup) || $backup instanceof \GdImage) {
|
||||||
|
|
||||||
// destroy current resource
|
// destroy current resource
|
||||||
imagedestroy($image->getCore());
|
imagedestroy($image->getCore());
|
||||||
|
Reference in New Issue
Block a user