Skip to:

Opened 17 months ago

Closed 7 months ago

#8820 closed task (fixed)

PHP8.2 compatibility

Reported by: imath's profile imath Owned by: imath's profile imath
Milestone: 12.0.0 Priority: high
Severity: normal Version:
Component: Core Keywords: has-patch


As reported here & previously discussed in BP Slack’s channel, we need to work on this.

Change History (8)

This ticket was mentioned in PR #62 on buddypress/buddypress by @imath.

16 months ago

  • Keywords has-patch has-unit-tests added; needs-patch removed

#2 @imath
16 months ago

  • Owner set to imath
  • Resolution set to fixed
  • Status changed from new to closed

In 13414:

Improve PHP 8.2 compatibility

  • Add the #[AllowDynamicProperties] attribute to classes when we add dynamic properties to these into our codebase.
  • Add PHP 8.2 to our PHPUnit testing matrix

Fixes #8820

#3 @imath
16 months ago

  • Keywords needs-patch added; has-patch has-unit-tests removed
  • Resolution fixed deleted
  • Status changed from closed to reopened

Ah! We still have work to perform on this task

#4 @imath
16 months ago

In 13423:

Set the $type property of BP_Groups_Group_Members_Template

See #8820

#5 @imath
14 months ago

In 13453:

Properly declare the BP_Nouveau_Customizer_Group_Nav $group prop

See #8820
See #7018

This ticket was mentioned in PR #162 on buddypress/buddypress by renatonascalves.

9 months ago

  • Keywords has-patch added; needs-patch removed

Getting lots of those warnings in PHP 8.2.

[12-Sep-2023 00:43:21 UTC] PHP Warning:  Object of class stdClass could not be converted to int in /var/www/site/wp-content/plugins/buddypress/src/bp-groups/bp-groups-template.php on line 1272

Trac ticket:

#7 @arafatjamil01
8 months ago

I have installed the latest version of BuddyPress plugin from the repository -

There are not deprecation notices, everything looks fine.

#8 @imath
7 months ago

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

In 13650:

Avoid a PHP 8.2 Warning when getting the group URL in Admin list table

Props renatonascalves

Fixes #8820

Note: See TracTickets for help on using tickets.