wp-memcached icon indicating copy to clipboard operation
wp-memcached copied to clipboard

PHP 8.2: Fix Creation of dynamic property deprecation notices

Open philipjohn opened this issue 2 years ago • 2 comments

In PHP 8.2, dynamically setting object properties that haven't been defined has been deprecated. WP_Object_Cache does this in several places, leading to a number of these notices.

The solution is simple - we simply need to define those properties in the class.

philipjohn avatar Oct 30 '23 12:10 philipjohn

Would be great to see this merged if possible to reduce a lot of chatter in the logs!

davidwren-boxuk avatar Oct 31 '23 13:10 davidwren-boxuk

A different PR that fixes the same issue has since been merged: https://github.com/Automattic/wp-memcached/pull/149

Krinkle avatar Apr 21 '24 16:04 Krinkle

Thanks for the PR @philipjohn, I apologise for the delay in feedback. It looks like these changes were merged in #149 and will be included in the 4.1 release via #162

dd32 avatar Jun 20 '24 02:06 dd32