From 345ff42a6a1a26d94ff5e06d209abab5dcb3fa57 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 19 Sep 2024 12:12:16 +0000 Subject: [PATCH] Coding Standards: Remove unused return value for `WP_Object_Cache::__set()`. This resolves a WPCS warning: {{{ Assignments must be the first block of code on a line }}} Note: This is enforced by PHPCS 3.10.3. Follow-up to [28521], [29146]. Props jrf. See #62076, #61607. Built from https://develop.svn.wordpress.org/trunk@59066 git-svn-id: http://core.svn.wordpress.org/trunk@58462 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-object-cache.php | 3 +-- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/wp-includes/class-wp-object-cache.php b/wp-includes/class-wp-object-cache.php index 6086ddf0d9..176d61503f 100644 --- a/wp-includes/class-wp-object-cache.php +++ b/wp-includes/class-wp-object-cache.php @@ -101,10 +101,9 @@ class WP_Object_Cache { * * @param string $name Property to set. * @param mixed $value Property value. - * @return mixed Newly-set property. */ public function __set( $name, $value ) { - return $this->$name = $value; + $this->$name = $value; } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index e44aac54be..81ea4af9a0 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.7-alpha-59065'; +$wp_version = '6.7-alpha-59066'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.