wp/wp-includes/class-wp-object-cache.php
changeset 22 8c2e4d02f4ef
parent 21 48c4eec2b7e6
--- a/wp/wp-includes/class-wp-object-cache.php	Fri Sep 05 18:40:08 2025 +0200
+++ b/wp/wp-includes/class-wp-object-cache.php	Fri Sep 05 18:52:52 2025 +0200
@@ -73,7 +73,7 @@
 	private $multisite;
 
 	/**
-	 * Sets up object properties; PHP 5 style constructor.
+	 * Sets up object properties.
 	 *
 	 * @since 2.0.8
 	 */
@@ -101,10 +101,9 @@
 	 *
 	 * @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;
 	}
 
 	/**