From 98b19e7c844bc04e34c1fdf398d857e32f61562f Mon Sep 17 00:00:00 2001 From: csemazharul <54615735+csemazharul@users.noreply.github.com> Date: Thu, 20 Aug 2026 17:37:51 +0600 Subject: [PATCH] Docs: Add missing `@return` tag to `remove_pdf_alpha_channel()`. `WP_Image_Editor_Imagick::remove_pdf_alpha_channel()`, introduced in [56271], returns a `WP_Error` object when `Imagick::setImageAlphaChannel()` throws, but its DocBlock declares no return value. This documents the existing return value only; no behavior is changed. Co-Authored-By: Claude Opus 5 (1M context) --- src/wp-includes/class-wp-image-editor-imagick.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wp-includes/class-wp-image-editor-imagick.php b/src/wp-includes/class-wp-image-editor-imagick.php index 57ed7c79e56ae..63b7b5d397f85 100644 --- a/src/wp-includes/class-wp-image-editor-imagick.php +++ b/src/wp-includes/class-wp-image-editor-imagick.php @@ -1085,6 +1085,8 @@ public function save( $destfilename = null, $mime_type = null ) { * Removes PDF alpha after it's been read. * * @since 6.4.0 + * + * @return void|WP_Error WP_Error object if the alpha channel could not be removed. */ protected function remove_pdf_alpha_channel() { $version = Imagick::getVersion();