1
0
mirror of https://github.com/Intervention/image.git synced 2025-09-02 02:12:37 +02:00

Merge pull request #1107 from DanielHudson/master

Add PHP8 GDImage object support
This commit is contained in:
Oliver Vogel
2021-08-11 16:38:16 +02:00
committed by GitHub

View File

@@ -16,8 +16,9 @@ class ResetCommand extends AbstractCommand
public function execute($image)
{
$backupName = $this->argument(0)->value();
if (is_resource($backup = $image->getBackup($backupName))) {
$backup = $image->getBackup($backupName);
if (is_resource($backup) || $backup instanceof \GdImage) {
// destroy current resource
imagedestroy($image->getCore());