diff options
author | Jonny Harris <spacedmonkey@git.wordpress.org> | 2023-07-07 11:30:15 +0000 |
---|---|---|
committer | Jonny Harris <spacedmonkey@git.wordpress.org> | 2023-07-07 11:30:15 +0000 |
commit | 2fbf610b25eeffc81f82c2c3d5071b2e15d4c89c (patch) | |
tree | e970003bedf673d624a5da0f8e5c3bc117d94c74 /tests/phpunit/includes | |
parent | 7035b615c452d3ef8517bbc5dc267031d3ed15fb (diff) | |
download | wordpress-2fbf610b25eeffc81f82c2c3d5071b2e15d4c89c.tar.gz wordpress-2fbf610b25eeffc81f82c2c3d5071b2e15d4c89c.zip |
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
Diffstat (limited to 'tests/phpunit/includes')
-rw-r--r-- | tests/phpunit/includes/object-cache.php | 14 |
1 files changed, 14 insertions, 0 deletions
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 @@ -914,6 +914,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. * * Instantiates the Memcached class and returns adds the servers specified |