[wp-trac] [WordPress Trac] #50913: PHP 8.0: various compatibility fixes
WordPress Trac
noreply at wordpress.org
Sun Oct 18 06:27:52 UTC 2020
#50913: PHP 8.0: various compatibility fixes
-------------------------------------------+-------------------------------
Reporter: jrf | Owner: SergeyBiryukov
Type: task (blessed) | Status: reviewing
Priority: normal | Milestone: 5.6
Component: General | Version:
Severity: normal | Resolution:
Keywords: php8 has-patch needs-dev-note | Focuses: coding-standards
-------------------------------------------+-------------------------------
Comment (by SergeyBiryukov):
In [changeset:"49186" 49186]:
{{{
#!CommitTicketReference repository="" revision="49186"
Code Modernization: Remove unnecessary reference sign from
`PO::export_entry()` definition.
This fixes a PHP 8 "argument must be passed by reference, value given"
error when using `array_map()` in `PO::export_entries()`.
Object variables in PHP 5+ contain a reference to the object, and it's the
reference that's passed around.
Props jrf.
See #50913.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50913#comment:75>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list