[wp-trac] [WordPress Trac] #58874: Code Modernization: Consider using the null coalescing operator.

WordPress Trac noreply at wordpress.org
Thu Jul 27 17:40:23 UTC 2023


#58874: Code Modernization: Consider using the null coalescing operator.
-----------------------------------+---------------------
 Reporter:  costdev                |       Owner:  (none)
     Type:  enhancement            |      Status:  new
 Priority:  normal                 |   Milestone:  6.4
Component:  General                |     Version:
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |     Focuses:
-----------------------------------+---------------------

Comment (by hellofromTonya):

 Replying to [comment:8 hellofromTonya]:
 > Adopting this syntax change will also impact code being merged from
 Gutenberg. How? The Gutenberg plugin supports the last 2 WP releases,
 which will be 6.3 (PHP 7.0 minimum) and 6.2 (PHP 5.6 minimum).
 >
 > There's a discussion in Gutenberg for when it can raise its minimum
 supported PHP version https://github.com/WordPress/gutenberg/issues/52344.

 This concern is now resolved.
 [https://github.com/WordPress/gutenberg/commit/c0a60336dad332cfcf70e80b945717cef511acf2
 Gutenberg's minimum supported PHP version is now 7.0].

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


More information about the wp-trac mailing list