From c300be5f7ca43b2252af699aa2da22eda2191bfa Mon Sep 17 00:00:00 2001 From: Kamil Wylegala Date: Sun, 12 Nov 2023 23:44:57 +0100 Subject: [PATCH] Allowed dynamic properties in model. --- README.md | 4 ++++ lib/Cake/Model/Model.php | 1 + 2 files changed, 5 insertions(+) diff --git a/README.md b/README.md index fa5a4b168b..406a6f1976 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,10 @@ It means that composer will look at `master` branch of repository configured und ## Changelog +### 2023-11-13 + +- Silence dynamic property creation warning in Model.php + ### 2023-11-02 - Fixed: unitialized property in Debugger.php diff --git a/lib/Cake/Model/Model.php b/lib/Cake/Model/Model.php index 860ad5bdf1..aef3c1085f 100644 --- a/lib/Cake/Model/Model.php +++ b/lib/Cake/Model/Model.php @@ -42,6 +42,7 @@ * @package Cake.Model * @link https://book.cakephp.org/2.0/en/models.html */ +#[AllowDynamicProperties] class Model extends CakeObject implements CakeEventListener { /**