[wp-trac] [WordPress Trac] #53635: PHP 8.1: various compatibility fixes
WordPress Trac
noreply at wordpress.org
Wed Aug 18 14:12:13 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-
commit | standards
-------------------------------------------------+-------------------------
Comment (by jrf):
@SergeyBiryukov I'd advocate for a different fix for [51633]: silencing
the deprecation notice (for now).
The actual `auto_detect_line_endings` functionality has not been removed
from PHP (yet) and will still work until PHP 9.0 and while the old MacOS
line ending of `\r` on its own, is nowadays a rarity to encounter, it may
still exist in translation files which haven't been updated for a long
time.
Also see [https://github.com/squizlabs/PHP_CodeSniffer/pull/3394 this
similar discussion elsewhere] about this.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53635#comment:58>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list