Skip to content

Commit ae65deb

Browse files
authored
fix: set null properties resource
1 parent 0c57e3c commit ae65deb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

system/Images/Handlers/GDHandler.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,8 @@ public function save(?string $target = null, int $quality = 90): bool
274274
throw ImageException::forInvalidImageCreate();
275275
}
276276

277+
$this->resource = null;
278+
277279
chmod($target, $this->filePermissions);
278280

279281
return true;

0 commit comments

Comments
 (0)