From 2fbf610b25eeffc81f82c2c3d5071b2e15d4c89c Mon Sep 17 00:00:00 2001 From: Jonny Harris Date: Fri, 7 Jul 2023 11:30:15 +0000 Subject: 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 --- tests/phpunit/includes/object-cache.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'tests/phpunit/includes') diff --git a/tests/phpunit/includes/object-cache.php b/tests/phpunit/includes/object-cache.php index ad7920f731..e1404188f3 100644 --- a/tests/phpunit/includes/object-cache.php +++ b/tests/phpunit/includes/object-cache.php @@ -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. * -- cgit v1.2.3