From 2547376c27377efe5e7eb863c53884c234653f67 Mon Sep 17 00:00:00 2001 From: Simpler1 Date: Sat, 30 Sep 2023 19:56:57 -0400 Subject: [PATCH] fix(php8): AllowDynamicProperties --- web/includes/Object.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/web/includes/Object.php b/web/includes/Object.php index 0541345bc0..9e9290c9b1 100644 --- a/web/includes/Object.php +++ b/web/includes/Object.php @@ -4,6 +4,12 @@ $object_cache = array(); +/** + * Use the fully-qualified AllowDynamicProperties, otherwise the #[AllowDynamicProperties] attribute on "MyClass" WILL NOT WORK. + */ +use \AllowDynamicProperties; + +#[AllowDynamicProperties] class ZM_Object { protected $_last_error;