• Creation of dynamic property WP_Object_Cache::$cache_misses is deprecated

    wp-content/plugins/memcached-is-your-friend/memcached-class-object-cache.php:486

    PHP website reference:

    Usage of dynamic properties

    The creation of dynamic properties is deprecated, unless the class opts in by using the?#[\AllowDynamicProperties]?attribute.?stdClass?allows dynamic properties. Usage of the?__get()/__set()?magic methods is not affected by this change. A dynamic properties deprecation warning can be addressed by:

    • Declaring the property (preferred).
    • Adding the?#[\AllowDynamicProperties]?attribute to the class (which also applies to all child classes).
    • Using aWeakMapif additional data needs to be associated with an object which one does not own.
  • You must be logged in to reply to this review.