[wp-trac] [WordPress Trac] #53635: PHP 8.1: various compatibility fixes
WordPress Trac
noreply at wordpress.org
Sat Nov 27 16:16:31 UTC 2021
#53635: PHP 8.1: various compatibility fixes
--------------------------------------------+------------------------------
Reporter: SergeyBiryukov | Owner: hellofromTonya
Type: task (blessed) | Status: accepted
Priority: normal | Milestone: 5.9
Component: General | Version:
Severity: normal | Resolution:
Keywords: php81 has-patch has-unit-tests | Focuses: coding-
| standards
--------------------------------------------+------------------------------
Comment (by SergeyBiryukov):
In [changeset:"52259" 52259]:
{{{
#!CommitTicketReference repository="" revision="52259"
Tests: Use a simpler approach to test the output in some tests.
Instead of ignoring the output and catching it later with
`getActualOutput()`, we can use `expectOutputRegex()` directly, which
evaluates the output after the rest of the test code has run, if no
unexpected errors were encountered.
Follow-up to [52173], [52253].
Props jrf.
See #53635, #53363.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53635#comment:149>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list