[wp-trac] [WordPress Trac] #51894: PHP 8: Invalid functions added to hooks now cause fatals

WordPress Trac noreply at wordpress.org
Mon Nov 30 23:47:59 UTC 2020


#51894: PHP 8: Invalid functions added to hooks now cause fatals
-------------------------------------------+---------------------
 Reporter:  dlh                            |       Owner:  (none)
     Type:  enhancement                    |      Status:  new
 Priority:  normal                         |   Milestone:  5.6
Component:  Plugins                        |     Version:
 Severity:  normal                         |  Resolution:
 Keywords:  php8 has-patch has-unit-tests  |     Focuses:
-------------------------------------------+---------------------

Comment (by ayeshrajans):

 I added two code review comments in GitHub PR, but I don't think they get
 sync'd to Trac yet. They are about dealing with associative arrays and
 empty arrays.

 I think `E_USER_WARNING` is the appropriate one as @jrf said, if not for
 throwing an exception right away.

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


More information about the wp-trac mailing list