Skip to content

Commit e060ee3

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. git-svn-id: https://develop.svn.wordpress.org/trunk@59066 602fd350-edb4-49c9-b593-d223f7449a82
1 parent b36055b commit e060ee3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/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
/**

0 commit comments

Comments
 (0)