Make WordPress Core


Ignore:
Timestamp:
09/20/2019 10:01:36 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Code Modernization: Remove all code using a version_compare() with a PHP version older than PHP 5.6.

Props jrf.
Fixes #48074.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/post/query.php

    r44701 r46214  
    706706     */
    707707    public function test_set_found_posts_not_posts_as_an_array( $posts, $expected ) {
    708         if ( version_compare( PHP_VERSION, '5.3', '<' ) ) {
    709             $this->markTestSkipped( 'ReflectionMethod::setAccessible is only available in PHP 5.3+' );
    710             return;
    711         }
    712 
    713708        $q = new WP_Query(
    714709            array(
Note: See TracChangeset for help on using the changeset viewer.