[wp-trac] [WordPress Trac] #50913: PHP 8.0: various compatibility fixes
WordPress Trac
noreply at wordpress.org
Fri Oct 2 14:17:23 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):
Replying to [comment:61 jrf]:
> The current test suite covers less than 40% of the WordPress Core code,
so that still means that over 60% of the WordPress Core code is currently
**''untested''** again PHP 8.0 and the PHP 8 compatibility status of the
code is unknown.
Right. As shared during the
[https://wordpress.slack.com/archives/core/p1601496745406900 recent weekly
dev chat], I think the next steps for PHP 8 support would be:
* Updating the Docker image to use the same PHP extensions for PHP 8 that
we have on PHP 7.x: `gd`, `mbstring`, etc. There is a PR by @desrosj
waiting for review: https://github.com/WordPress/wpdev-docker-
images/pull/36. If anyone is able to help with that, please do :)
* Fixing some function argument type issues reported by PHPStan (a static
analyzer): #51423.
* More testing on PHP 8, expanding test coverage, and creating tickets for
any issues found. @Andrei and @desrosj are working on a call for testing
to be published later.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50913#comment:65>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list