Skip to content

Commit

Permalink
Add PHP 8.2 fixes for dynamic properties error
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeccahum committed Oct 3, 2023
1 parent 529c2cc commit 1fe25a7
Show file tree
Hide file tree
Showing 4 changed files with 325 additions and 253 deletions.
6 changes: 5 additions & 1 deletion common/php/class-module.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ class EF_Module {
'private',
);

public $module_url;

public $module;

function __construct() {}

/**
Expand Down Expand Up @@ -478,7 +482,7 @@ function users_select_form( $selected = null, $args = null ) {

<?php if( !empty($users) ) : ?>
<ul class="<?php echo esc_attr( $list_class ) ?>">
<?php foreach( $users as $user ) :
<?php foreach( $users as $user ) :
$checked = ( in_array($user->ID, $selected) ) ? 'checked="checked"' : '';
// Add a class to checkbox of current user so we know not to add them in notified list during notifiedMessage() js function
$current_user_class = ( get_current_user_id() == $user->ID ) ? 'class="post_following_list-current_user" ' : '';
Expand Down
64 changes: 64 additions & 0 deletions edit_flow.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,70 @@ class edit_flow {
*/
private static $instance;

/**
* Active modules.
*
* @var \stdClass
*/
public $modules;

/**
* Number of active modules.
*
* @var int
*/
public $modules_count;

/**
* @var EF_Module
*/
public $helpers;

/**
* @var EF_Calendar
*/
public $calendar;

/**
* @var EF_Custom_Status
*/
public $custom_status;

/**
* @var EF_Dashboard
*/
public $dashboard;

/**
* @var EF_Settings
*/
public $settings;

/**
* @var EF_Notifications
*/
public $notifications;

/**
* @var EF_Story_Budget
*/
public $story_budget;

/**
* @var EF_Editorial_Comments
*/
public $editorial_comments;

/**
* @var EF_Editorial_Medata
*/
public $editorial_metadata;

/**
* @var EF_User_Groups
*/
public $user_groups;

/**
* Main EditFlow Instance
*
Expand Down
Loading

0 comments on commit 1fe25a7

Please sign in to comment.