From fa774513f3b5db96f393f6af17a30d51f1157564 Mon Sep 17 00:00:00 2001 From: Gregor Harlan Date: Fri, 10 Apr 2026 18:16:47 +0200 Subject: [PATCH 1/2] refactor: remove unnecessary `imagedestroy()` calls Since PHP 8.0, GD images are `GdImage` objects that are automatically freed by the garbage collector, making `imagedestroy()` a no-op. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../addons/media_manager/lib/effects/effect_filter_sharpen.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/redaxo/src/addons/media_manager/lib/effects/effect_filter_sharpen.php b/redaxo/src/addons/media_manager/lib/effects/effect_filter_sharpen.php index fe70e3bf6b..20245dfd40 100644 --- a/redaxo/src/addons/media_manager/lib/effects/effect_filter_sharpen.php +++ b/redaxo/src/addons/media_manager/lib/effects/effect_filter_sharpen.php @@ -159,8 +159,7 @@ public function execute() } } } - imagedestroy($imgCanvas); - imagedestroy($imgBlur); + $this->media->setImage($gdimage); } From 387c39fa2e29e76f5cfe78e838ba0207554d9343 Mon Sep 17 00:00:00 2001 From: gharlan <330436+gharlan@users.noreply.github.com> Date: Fri, 10 Apr 2026 16:20:20 +0000 Subject: [PATCH 2/2] chore: update psalm baseline --- .tools/psalm/baseline.xml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.tools/psalm/baseline.xml b/.tools/psalm/baseline.xml index 34124594c4..96cf4240dc 100644 --- a/.tools/psalm/baseline.xml +++ b/.tools/psalm/baseline.xml @@ -855,8 +855,6 @@ - -