Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/10/2023 03:12:09 AM (20 months ago)
Author:
imath
Message:

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

Closes https://github.com/buddypress/buddypress/pull/62
Fixes #8820

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/assets/bp-rest-api-controllers.php

    r12607 r13414  
    1515 * BP Member Cover Image REST Controller's mock.
    1616 */
     17#[AllowDynamicProperties]
    1718class BP_REST_Attachments_Member_Cover_Endpoint extends BP_REST_Mock_Class {
    1819    public function __construct() {
     
    2930 * BP Member Avatar REST Controller's mock.
    3031 */
     32#[AllowDynamicProperties]
    3133class BP_REST_Attachments_Member_Avatar_Endpoint extends BP_REST_Mock_Class {
    3234    public function __construct() {
     
    4345 * BP Components REST Controller's mock.
    4446 */
     47#[AllowDynamicProperties]
    4548class BP_REST_Components_Endpoint extends BP_REST_Mock_Class {
    4649    public function __construct() {
     
    5760 * BP Members REST Controller's mock.
    5861 */
     62#[AllowDynamicProperties]
    5963class BP_REST_Members_Endpoint extends BP_REST_Mock_Class {
    6064    public function __construct() {
Note: See TracChangeset for help on using the changeset viewer.