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
This commit is contained in:
Sergey Biryukov 2024-09-19 12:12:16 +00:00
parent ec7041f1c2
commit 345ff42a6a
2 changed files with 2 additions and 3 deletions

View File

@ -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;
}
/**

View File

@ -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.