Make WordPress Core

Changeset 56161


Ignore:
Timestamp:
07/07/2023 11:30:15 AM (11 months ago)
Author:
spacedmonkey
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/object-cache.php

    r55742 r56161  
    913913     */
    914914    public $blog_prefix = '';
     915
     916    /**
     917     * Thirty days in seconds.
     918     *
     919     * @var int
     920     */
     921    public $thirty_days;
     922
     923    /**
     924     * Current unix time stamp.
     925     *
     926     * @var int
     927     */
     928    public $now;
    915929
    916930    /**
Note: See TracChangeset for help on using the changeset viewer.