#54999 closed defect (bug) (duplicate)
PHP8.1: Passing null to parameter #2 ($numeric_prefix) of type string is deprecated
| Reported by: | haozi | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | External Libraries | Version: | 6.0 |
| Severity: | normal | Keywords: | php81 |
| Cc: | Focuses: |
Description
In file wp-includes/Requests/Transport/cURL.php on line 345
$data = http_build_query($data, null, '&');
we can fix it like:
<?php $data = http_build_query($data, '', '&');
Change History (2)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Thanks for the report @haozi!
The update of the Requests library is already being tracked in #54504, so I'll close this issue as a duplicate.