Make WordPress Core


Ignore:
Timestamp:
09/19/2024 12:10:19 PM (23 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-object-cache.php

    r58682 r59066  
    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
Note: See TracChangeset for help on using the changeset viewer.