[wp-trac] [WordPress Trac] #54996: PHP8.1 throw 'Deprecated' in WordPress 6.0-alpha-52650

WordPress Trac noreply at wordpress.org
Mon Jan 31 04:00:48 UTC 2022


#54996: PHP8.1 throw 'Deprecated' in WordPress 6.0-alpha-52650
-----------------------------------------------+---------------------------
 Reporter:  haozi                              |       Owner:  (none)
     Type:  defect (bug)                       |      Status:  new
 Priority:  normal                             |   Milestone:  6.0
Component:  I18N                               |     Version:  trunk
 Severity:  trivial                            |  Resolution:
 Keywords:  has-patch php81 reporter-feedback  |     Focuses:
                                               |  administration
-----------------------------------------------+---------------------------
Changes (by jrf):

 * keywords:  has-patch php81 => has-patch php81 reporter-feedback
 * severity:  major => trivial


Comment:

 @haozi Thanks for reporting this.

 To be honest, I'd like to see a full backtrace of this notice as this is
 something which shouldn't be able to occur if the
 internationalization/translation functions are used correctly, so I'd like
 to get to the bottom of where this is coming from.

 Adding an `(int)` cast, like you suggest in the GitHub PR, would be
 ''hiding'' the error, instead of fixing it at the source. This, IMO, is
 the wrong way to go.

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


More information about the wp-trac mailing list