[wp-trac] [WordPress Trac] #57345: Bump the minimum required PHP version to 7.2

WordPress Trac noreply at wordpress.org
Fri Dec 23 00:02:16 UTC 2022


#57345: Bump the minimum required PHP version to 7.2
-------------------------------------------------+-------------------------
 Reporter:  SergeyBiryukov                       |       Owner:  (none)
     Type:  task (blessed)                       |      Status:  new
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  General                              |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests 2nd-        |     Focuses:
  opinion                                        |
-------------------------------------------------+-------------------------

Comment (by jrf):

 Replying to [comment:45 azaozz]:

 > Bumping to 7.2 would (at least) mean a native Sodium lib

 True, but the polyfill can not be dropped, even with a PHP 7.2 minimum as
 the extension is optional and PHP can even be compiled without it.

 > and that we can drop the PHPUnit shims and start using PHPUnit 8.5
 directly (as far as I see).

 Unfortunately, that is not true. There are still [https://github.com/Yoast
 /PHPUnit-Polyfills#phpunit--
 900-yoastphpunitpolyfillspolyfillsequaltospecializations four Polyfills
 needed] to be able to "write tests for PHPUnit 9.x and still be able to
 run them on PHPUnit 8.x".

 Also, keep in mind that PHPUnit 10.x is expected soonish (current ETA Feb
 2023) and will contain significant and extremely breaking changes. At this
 point in time it is unclear how long (limited) PHP cross-version support
 will be continued for PHPUnit 8.x/9.x, so chances are high that PHPUnit
 10.x will need to be supported sooner rather than later.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57345#comment:47>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list