Skip to:
Content

BuddyPress.org

Changeset 14221


Ignore:
Timestamp:
07/29/2026 03:35:02 PM (6 weeks ago)
Author:
dcavins
Message:

Avoid php8.4 deprecation notices (12.0 branch).

Resolve php8.4 deprecations notices about implicitly marking function parameters as nullable.

See #9337.

Props dealazer, emaralive.

Location:
branches/12.0/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/12.0/src/bp-core/bp-core-template-loader.php

    r13847 r14221  
    650650 *
    651651 * @since 12.0.0
     652 * @since 12.7.1 Make nullable type parameter compatible with PHP 8.4.
    652653 *
    653654 * @param string   $bp_request A specific BuddyPress request.
     
    655656 * @return true
    656657 */
    657 function bp_reset_query( $bp_request = '', WP_Query $query = null ) {
     658function bp_reset_query( $bp_request = '', $query = null ) {
    658659        global $wp;
    659660
  • branches/12.0/src/bp-groups/bp-groups-admin.php

    r13858 r14221  
    11861186 *
    11871187 * @since 2.6.0
     1188 * @since 12.7.1 Make nullable type parameter compatible with PHP 8.4.
    11881189 *
    11891190 * @param BP_Groups_Group|null $group The BP_Groups_Group object corresponding to the group being edited.
    11901191 */
    1191 function bp_groups_admin_edit_metabox_group_type( BP_Groups_Group $group = null ) {
     1192function bp_groups_admin_edit_metabox_group_type( $group = null ) {
    11921193
    11931194        // Bail if no group ID.
Note: See TracChangeset for help on using the changeset viewer.