[wp-trac] [WordPress Trac] #63061: Prepare for PHP 8.5

WordPress Trac noreply at wordpress.org
Thu Nov 6 22:23:09 UTC 2025


#63061: Prepare for PHP 8.5
--------------------------------------------+------------------------------
 Reporter:  johnbillion                     |       Owner:  (none)
     Type:  task (blessed)                  |      Status:  new
 Priority:  normal                          |   Milestone:  6.9
Component:  General                         |     Version:
 Severity:  normal                          |  Resolution:
 Keywords:  php85 has-patch needs-dev-note  |     Focuses:  php-
                                            |  compatibility
--------------------------------------------+------------------------------

Comment (by westonruter):

 In [changeset:"61171" 61171]:
 {{{
 #!CommitTicketReference repository="" revision="61171"
 Tests: Fix unit test failure in PHP 8.5 due using null as an array offset.

 This adds `is_string()` type checks for the `$post_status` arg passed to
 both `get_post_status_object()` and `is_post_status_viewable()`. This was
 triggered by
 `Tests_Post_IsPostStatusViewable::test_built_in_and_unregistered_status_types()`
 for the `null` data set.

 Follow-up to [61170].

 See #63167, #63061.
 }}}

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


More information about the wp-trac mailing list