Skip to content

Commit d25f53c

Browse files
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: https://core.svn.wordpress.org/trunk@58462 1a063a9b-81f0-0310-95a4-ce76da25c4cd
1 parent 21cac03 commit d25f53c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

wp-includes/class-wp-object-cache.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,9 @@ public function __get( $name ) {
101101
*
102102
* @param string $name Property to set.
103103
* @param mixed $value Property value.
104-
* @return mixed Newly-set property.
105104
*/
106105
public function __set( $name, $value ) {
107-
return $this->$name = $value;
106+
$this->$name = $value;
108107
}
109108

110109
/**

wp-includes/version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* @global string $wp_version
1818
*/
19-
$wp_version = '6.7-alpha-59065';
19+
$wp_version = '6.7-alpha-59066';
2020

2121
/**
2222
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

0 commit comments

Comments
 (0)