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/tests/functions/wpArrayGet.php

    r56971 r60809  
    239239                        true
    240240                );
    241 
    242                 $this->assertSame(
    243                         _wp_array_get(
    244                                 array(
    245                                         'key' => array(
    246                                                 null => 4,
    247                                         ),
    248                                 ),
    249                                 array( 'key', null ),
    250                                 true
    251                         ),
    252                         4
    253                 );
    254241        }
    255242
Note: See TracChangeset for help on using the changeset viewer.