Skip to:
Content

BuddyPress.org

Opened 4 years ago

Closed 4 years ago

#8393 closed defect (bug) (fixed)

PHP 8.0 deprecated notice caused by the `BP_Groups_List_Table->column_content_group_type` method

Reported by: imath's profile imath Owned by: imath's profile imath
Milestone: 6.4.0 Priority: normal
Severity: normal Version:
Component: Groups Keywords: has-patch
Cc:

Description

Just like #8390 and #8392. Same cause, same consequence. I've search the code source for 0, $, array(), $, '', $ and couldn't find more occurence of required variable positioned after an optional variable.

Attachments (1)

8393.patch (681 bytes) - added by imath 4 years ago.

Download all attachments as: .zip

Change History (3)

@imath
4 years ago

#1 @imath
4 years ago

In 12787:

Groups: Avoid a PHP 8.0 deprecated notice about optional function arg.

The BP_Groups_List_Table->column_content_group_type method was wrongly using one optional arguments before two required ones. As PHP 8.0 no longer accepts this practice, all arguments of the method will be optional.

See #8393 (branch 6.0)

#2 @imath
4 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 12788:

Groups: Avoid a PHP 8.0 deprecated notice about optional function arg.

The BP_Groups_List_Table->column_content_group_type method was wrongly using one optional arguments before two required ones. As PHP 8.0 no longer accepts this practice, all arguments of the method will be optional.

Fixes #8393 (trunk)

Note: See TracTickets for help on using tickets.