Skip to content

Commit

Permalink
Add dynamic property attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeccahum committed Oct 4, 2023
1 parent a6352bb commit 4e1df34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 45 deletions.
1 change: 1 addition & 0 deletions common/php/class-module.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

if ( !class_exists( 'EF_Module' ) ) {

#[\AllowDynamicProperties]
class EF_Module {

public $published_statuses = array(
Expand Down
46 changes: 1 addition & 45 deletions edit_flow.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ function _ef_print_php_version_admin_notice() {
define( 'EDIT_FLOW_SETTINGS_PAGE' , add_query_arg( 'page', 'ef-settings', get_admin_url( null, 'admin.php' ) ) );

// Core class
#[\AllowDynamicProperties]
class edit_flow {

// Unique identified added as a prefix to all options
Expand Down Expand Up @@ -83,51 +84,6 @@ class edit_flow {
*/
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

0 comments on commit 4e1df34

Please sign in to comment.