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-activity/classes/class-bp-activity-activity.php

    r13396 r13414  
    1818 * @since 1.0.0
    1919 */
     20#[AllowDynamicProperties]
    2021class BP_Activity_Activity {
    2122
     
    6061     * @var string
    6162     */
    62     var $primary_link;
     63    var $primary_link = '';
    6364
    6465    /**
     
    6869     * @var string
    6970     */
    70     var $component;
     71    var $component = '';
    7172
    7273    /**
     
    7677     * @var string
    7778     */
    78     var $type;
     79    var $type = '';
    7980
    8081    /**
     
    8485     * @var string
    8586     */
    86     var $action;
     87    var $action = '';
    8788
    8889    /**
     
    9293     * @var string
    9394     */
    94     var $content;
     95    var $content = '';
    9596
    9697    /**
     
    100101     * @var string
    101102     */
    102     var $date_recorded;
     103    var $date_recorded = '';
    103104
    104105    /**
Note: See TracChangeset for help on using the changeset viewer.