[wp-trac] [WordPress Trac] #50913: PHP 8.0: various compatibility fixes
WordPress Trac
noreply at wordpress.org
Fri Sep 25 02:09:46 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:"49046" 49046]:
{{{
#!CommitTicketReference repository="" revision="49046"
Tests: Correct the check for image sizes in some REST API attachments
controller tests.
If the sizes data could not be retrieved, the controller returns an empty
object instead of an array.
This makes sure that the value is in fact an array before proceeding, and
outputs a proper message in case of failure, instead of an obscure PHP
error further in the test.
Follow-up to [49044].
See #50913, #51393.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50913#comment:48>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list