Make WordPress Core


Ignore:
Timestamp:
07/06/2024 02:52:05 PM (2 months ago)
Author:
SergeyBiryukov
Message:

Code Modernization: Remove obsolete comments about older PHP versions.

This commit:

  • Removes various comments referencing PHP versions which are no longer supported.
  • Removes various comments containing “hints” of things to do after a particular PHP version drop. These hints are incorrect/not actionable for various reasons, so have no value:
    • Even though a function could be turned into a closure, removing the function would be a backward compatibility break which is not acceptable, so this suggestion is not actionable.
    • Short ternaries are forbidden by the coding standard exactly to prevent the faulty code suggested in the comment from getting into the codebase.

Follow-up to [1243/tests], [6543], [11816], [29861], [29864], [34928], [35369], [36698], [38694], [50786], [58678].

Props jrf, ayeshrajans.
See #61574.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/http/http.php

    r57987 r58682  
    115115            ),
    116116
    117             // < PHP 5.4.7: Schemeless URL.
     117            // Schemeless URL.
    118118            array(
    119119                '//example.com/path/',
     
    139139            ),
    140140
    141             // < PHP 5.4.7: Scheme separator in the URL.
     141            // Scheme separator in the URL.
    142142            array(
    143143                'http://example.com/http://example.net/',
     
    150150            array( '/path/http://example.net/', array( 'path' => '/path/http://example.net/' ) ),
    151151
    152             // < PHP 5.4.7: IPv6 literals in schemeless URLs are handled incorrectly.
     152            // IPv6 literals in schemeless URLs.
    153153            array(
    154154                '//[::FFFF::127.0.0.1]/',
     
    239239            array( self::FULL_TEST_URL, PHP_URL_FRAGMENT, 'anchor' ),
    240240
    241             // < PHP 5.4.7: Schemeless URL.
     241            // Schemeless URL.
    242242            array( '//example.com/path/', PHP_URL_HOST, 'example.com' ),
    243243            array( '//example.com/path/', PHP_URL_PATH, '/path/' ),
     
    247247            array( 'http://example.com//path/', PHP_URL_PATH, '//path/' ),
    248248
    249             // < PHP 5.4.7: Scheme separator in the URL.
     249            // Scheme separator in the URL.
    250250            array( 'http://example.com/http://example.net/', PHP_URL_HOST, 'example.com' ),
    251251            array( 'http://example.com/http://example.net/', PHP_URL_PATH, '/http://example.net/' ),
     
    253253            array( '/path/http://example.net/', PHP_URL_PATH, '/path/http://example.net/' ),
    254254
    255             // < PHP 5.4.7: IPv6 literals in schemeless URLs are handled incorrectly.
     255            // IPv6 literals in schemeless URLs.
    256256            array( '//[::FFFF::127.0.0.1]/', PHP_URL_HOST, '[::FFFF::127.0.0.1]' ),
    257257            array( '//[::FFFF::127.0.0.1]/', PHP_URL_PATH, '/' ),
Note: See TracChangeset for help on using the changeset viewer.