[wp-trac] [WordPress Trac] #42789: Bump recommended PHP version from 7.0 -> 7.2
WordPress Trac
noreply at wordpress.org
Mon Dec 4 19:49:40 UTC 2017
#42789: Bump recommended PHP version from 7.0 -> 7.2
-------------------------------------+--------------------------
Reporter: rachelbaker | Owner: rachelbaker
Type: task (blessed) | Status: closed
Priority: normal | Milestone: 5.0
Component: General | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch needs-refresh | Focuses:
-------------------------------------+--------------------------
Comment (by ayeshrajans):
Awesome to hear about bumping version to 7.2! I work quite a lot on legacy
code, and from what I have seen, PHP 7.2 can raise some PHP notices that
are often not seen from tests or and pop up in edge cases. I have worked
on a few tickets for 7.2 and tests are passing(yay!), but personally, I
think there is still a room for improvement.
One very frequent problem with 7.2 is that count() calls on uncountable
variables raise a notice. This kind of bugs are very difficult to grep
from the repo and often missed from tests. `count()`, `each()` and such
deprecation notices are easy to fix but annoying nonetheless. If we can
actively hunt those bugs quickly as they are reported, that can help a
lot.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42789#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list