Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/10/2023 03:12:09 AM (3 years 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/src/bp-xprofile/classes/class-bp-xprofile-field.php

    r13399 r13414  
    1616 * @since 1.0.0
    1717 */
     18#[AllowDynamicProperties]
    1819class BP_XProfile_Field {
    1920
     
    4849         * @var string
    4950         */
    50         public $type;
     51        public $type = '';
    5152
    5253        /**
     
    5657         * @var string
    5758         */
    58         public $name;
     59        public $name = '';
    5960
    6061        /**
     
    6465         * @var string
    6566         */
    66         public $description;
     67        public $description = '';
    6768
    6869        /**
     
    104105         * @var string
    105106         */
    106         public $order_by;
     107        public $order_by = '';
    107108
    108109        /**
Note: See TracChangeset for help on using the changeset viewer.