[wp-trac] [WordPress Trac] #60786: [PHP 8.4] Fix implicit nullable parameter type depcation

WordPress Trac noreply at wordpress.org
Wed May 1 18:55:40 UTC 2024


#60786: [PHP 8.4] Fix implicit nullable parameter type depcation
-----------------------------+--------------------------------
 Reporter:  ayeshrajans      |       Owner:  SergeyBiryukov
     Type:  defect (bug)     |      Status:  closed
 Priority:  normal           |   Milestone:  6.6
Component:  General          |     Version:
 Severity:  normal           |  Resolution:  fixed
 Keywords:  php84 has-patch  |     Focuses:  php-compatibility
-----------------------------+--------------------------------

Comment (by SergeyBiryukov):

 Replying to [comment:12 jrf]:
 > Making a parameter nullable does not make it optional. Removing the
 default value is a signature change which will break code:
 https://3v4l.org/L9ZAP

 Thanks for the clarification!

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


More information about the wp-trac mailing list