From 6a0a24179dce4e8f461160c28ad9b870d4ae1ef2 Mon Sep 17 00:00:00 2001 From: Sean Fisher Date: Tue, 5 Sep 2023 15:42:56 -0400 Subject: [PATCH 1/2] Add fixes for PHP 8.2 --- .vscode/settings.json | 7 + common/php/class-module.php | 5 +- edit_flow.php | 20 ++ modules/calendar/calendar.php | 316 ++++++++++++++++---------------- modules/dashboard/dashboard.php | 82 ++++----- 5 files changed, 230 insertions(+), 200 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000..4ea4194d1 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,7 @@ +{ + "workbench.colorCustomizations": { + "activityBar.background": "#40243A", + "titleBar.activeBackground": "#5A3351", + "titleBar.activeForeground": "#FCF9FB" + } +} diff --git a/common/php/class-module.php b/common/php/class-module.php index 0d7231d66..0fe1508f4 100644 --- a/common/php/class-module.php +++ b/common/php/class-module.php @@ -7,6 +7,7 @@ if ( !class_exists( 'EF_Module' ) ) { +#[\AllowDynamicProperties] class EF_Module { public $published_statuses = array( @@ -15,6 +16,8 @@ class EF_Module { 'private', ); + public $module_url; + function __construct() {} /** @@ -478,7 +481,7 @@ function users_select_form( $selected = null, $args = null ) {