Make WordPress Core


Ignore:
Timestamp:
01/03/2026 06:15:57 AM (4 months ago)
Author:
westonruter
Message:

Code Modernization: Update tests to use null coalescing operator in place of isset() in ternaries.

Developed as a subset of https://github.com/WordPress/wordpress-develop/pull/10654

Follow-up to [61404], [61403].

See #58874, #63430.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/abstract-testcase.php

    r61038 r61424  
    13141314        $parts = parse_url( $url );
    13151315        if ( isset( $parts['scheme'] ) ) {
    1316             $req = isset( $parts['path'] ) ? $parts['path'] : '';
     1316            $req = $parts['path'] ?? '';
    13171317            if ( isset( $parts['query'] ) ) {
    13181318                $req .= '?' . $parts['query'];
Note: See TracChangeset for help on using the changeset viewer.