[wp-trac] [WordPress Trac] #55411: Deprecated error in WordPress 5.9 on PHP 8.1

WordPress Trac noreply at wordpress.org
Wed Mar 23 23:12:20 UTC 2022


#55411: Deprecated error in WordPress 5.9 on PHP 8.1
-------------------------------------+------------------------------
 Reporter:  meysamnorouzi            |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  General                  |     Version:  5.9.2
 Severity:  normal                   |  Resolution:
 Keywords:  php81 reporter-feedback  |     Focuses:
-------------------------------------+------------------------------
Changes (by jrf):

 * keywords:   => php81 reporter-feedback


Comment:

 Deprecations are not errors. A lot of WordPress functions all suffer from
 similar issues and we should implement a **proper**, consistent solution
 for all, which is why these issues have not been addressed yet as a
 discussion is needed on the solution direction.

 The only time it would be possible to get these deprecation notices, is if
 these functions are being called with a `null` being passed to a non-
 nullable parameter, which is ''doing it wrong''. More than anything, the
 incorrect function ''call'', should be fixed. Not the function where the
 deprecation is thrown.

 For that a full backtrace of the notices is needed to determine where the
 incorrect function ''call'' is being made.

 As for the deprecations from the `Requests_*` classes, see the dedicated
 ticket about upgrading the external Requests library: #54504

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


More information about the wp-trac mailing list