From 0b0ec3ef4032261eedc1a7c57df20aa512ddfe76 Mon Sep 17 00:00:00 2001 From: Diego Surita Date: Tue, 19 Dec 2023 18:10:22 +0000 Subject: [PATCH] Fix dynamic property creation deprecation warning There are many classes that create properties dynamically (Controller class for example). --- lib/Cake/Core/CakeObject.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Cake/Core/CakeObject.php b/lib/Cake/Core/CakeObject.php index 0a0f3ac16..776982248 100644 --- a/lib/Cake/Core/CakeObject.php +++ b/lib/Cake/Core/CakeObject.php @@ -27,6 +27,7 @@ App::uses('Set', 'Utility'); * * @package Cake.Core */ +#[\AllowDynamicProperties] class CakeObject { /**