Make WordPress Core


Ignore:
Timestamp:
10/26/2023 08:31:45 PM (21 months ago)
Author:
SergeyBiryukov
Message:

Tests: Use a @requires annotation for readonly() function test.

The function is only defined by WordPress core on PHP < 8.1.

Follow-up to [51586].

See #59647.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/php-compat/readonly.php

    r54951 r57011  
    55 *
    66 * In order to avoid PHP parser errors, this function was extracted
    7  * to this separate file and is only included conditionally on PHP 8.1.
     7 * to this separate file and is only included conditionally on PHP < 8.1.
    88 *
    99 * Including this file on PHP >= 8.1 results in a fatal error.
Note: See TracChangeset for help on using the changeset viewer.