[wp-trac] [WordPress Trac] #54999: PHP8.1: Passing null to parameter #2 ($numeric_prefix) of type string is deprecated
WordPress Trac
noreply at wordpress.org
Sun Jan 30 13:50:22 UTC 2022
#54999: PHP8.1: Passing null to parameter #2 ($numeric_prefix) of type string is
deprecated
--------------------------+-----------------------------
Reporter: haozi | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: HTTP API | Version: trunk
Severity: major | Keywords: php81
Focuses: |
--------------------------+-----------------------------
In file wp-includes/Requests/Transport/cURL.php on line 345
{{{#!php
$data = http_build_query($data, null,
'&');
}}}
we can fix it like:
{{{#!php
<?php
$data = http_build_query($data, '', '&');
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54999>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list