[wp-trac] [WordPress Trac] #57605: Fix PHP8.1 Deprecation notices passing null

WordPress Trac noreply at wordpress.org
Thu Feb 2 08:10:35 UTC 2023


#57605: Fix PHP8.1 Deprecation notices passing null
--------------------------+------------------------------
 Reporter:  afragen       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Formatting    |    Version:  trunk
 Severity:  normal        |   Keywords:  has-patch php8.1
  Focuses:                |
--------------------------+------------------------------
 While testing a feature that occurs during an auto-update, in wp-cron, I
 found PHP deprecation notices that only occur in PHP8.1. What is happening
 is `null` is being passed to certain functions who expect to see a string.

 Simply type casting the variable fixes the issue.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57605>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list