[wp-trac] [WordPress Trac] #57345: Bump the minimum required PHP version to 7.2
WordPress Trac
noreply at wordpress.org
Fri May 12 15:41:18 UTC 2023
#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 knutsp):
Replying to [comment:70 spacedmonkey]:
> @SergeyBiryukov PHP 5.6 is less than 5%. Could we bump in the min
requirement to 7.0? Then do 7.2 later?
Yes, no need to wait. PHP 7.0 came with
* Significantly reduced memory usage
* The null coalescing operator (??) (avoids a lot of `isset` checks and
conditions just to safely have a default value. In WP especially useful
when accessing possibly non existent, non required array keys.
* Return and Scalar Type Declarations
* etc.
So we can start modernizing the code once a decision is made.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57345#comment:72>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list