Skip to content

Commit fb51c3d

Browse files
authored
Merge pull request #4625 from TobiasBg/patch-1
PHP 8.5: Prevent deprecation notices for imagedestroy
2 parents ff7195c + 4f52546 commit fb51c3d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/PhpSpreadsheet/Worksheet/MemoryDrawing.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,7 @@ public function __construct()
6464

6565
public function __destruct()
6666
{
67-
if ($this->imageResource) {
68-
@imagedestroy($this->imageResource);
69-
$this->imageResource = null;
70-
}
67+
$this->imageResource = null;
7168
$this->worksheet = null;
7269
}
7370

0 commit comments

Comments
 (0)