[buddypress-trac] [BuddyPress Trac] #8726: I installed Child Theme Config and performed

buddypress-trac noreply at wordpress.org
Tue Aug 9 18:23:38 UTC 2022


#8726: I installed Child Theme Config and performed
--------------------------+---------------------
 Reporter:  baasui        |       Owner:  imath
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  11.0.0
Component:  Navigation    |     Version:
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |
--------------------------+---------------------
Changes (by imath):

 * owner:  (none) => imath
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"13311" 13311]:
 {{{
 #!CommitTicketReference repository="" revision="13311"
 Avoid PHP 8.1 ArrayAccess Return Type deprecation notices

 The `BP_Core_BP_Nav_BackCompat` is implementing the ArrayAccess class to
 provide backward compatibility to BuddyPress plugins directly modifying
 the `buddypress()->bp_nav` global since BuddyPress 2.3.

 PHP 8.1 added a deprecation notice if a class declaration has an
 incompatible return type (or if the return type lacks: which is the case
 for `BP_Core_BP_Nav_BackCompat`) with the parent it extends.

 As BuddyPress supports PHP back to version 5.6, we need to use the
 `#ReturnTypeWillChange` attribute to maintain compatibility with this
 version and avoid the deprecation notice in PHP 8.x.

 Fixes #8726
 }}}

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8726#comment:5>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list