Make WordPress Core


Ignore:
Timestamp:
09/29/2025 04:28:00 PM (10 months ago)
Author:
swissspidy
Message:

Code Modernization: Fix instances of using null as an array offset.

Addresses a new deprecation in PHP 8.5.

Props swissspidy.
Fixes #63957.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/data/html-api/token-counting-html-processor.php

    r59364 r60809  
    2424                }
    2525
     26                if ( null === $token_name ) {
     27                        $token_name = '';
     28                }
     29
    2630                if ( ! isset( $this->token_seen_count[ $token_name ] ) ) {
    2731                        $this->token_seen_count[ $token_name ] = 1;
Note: See TracChangeset for help on using the changeset viewer.