Build/Test: Fix dynamic property deprecation warning in object cache drop-in.

Fix deprecation warning for dynamic property in object cache drop-in used in core unit tests. 

Dynamic (non-explicitly declared) properties are deprecated as of PHP 8.2 and are expected to become a fatal error in PHP 9.0.

Props spacedmonkey, johnbillion.
Fixes #58736. 
See #56034.

git-svn-id: https://develop.svn.wordpress.org/trunk@56161 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jonny Harris 2023-07-07 11:30:15 +00:00
parent 7035b615c4
commit 2fbf610b25

View File

@ -913,6 +913,20 @@ class WP_Object_Cache {
*/
public $blog_prefix = '';
/**
* Thirty days in seconds.
*
* @var int
*/
public $thirty_days;
/**
* Current unix time stamp.
*
* @var int
*/
public $now;
/**
* Instantiates the Memcached class.
*