From eed5974b24c270e80d0d600f2ddbfe0f29a8fcf5 Mon Sep 17 00:00:00 2001 From: Kamil Wylegala Date: Fri, 24 May 2024 22:27:19 +0200 Subject: [PATCH] False to array conversion fix. (#73) --- README.md | 4 ++++ lib/Cake/Model/Model.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cae994b58..517cd6059 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,10 @@ It means that composer will look at `master` branch of repository configured und ## Changelog +### 2024-05-24 + +- Fix deprecation error in Model: `Automatic conversion of false to array is deprecated` + ### 2024-05-22 - Fix deprecation error in I18n: `Automatic conversion of false to array is deprecated` diff --git a/lib/Cake/Model/Model.php b/lib/Cake/Model/Model.php index aef3c1085..b597cf2d0 100644 --- a/lib/Cake/Model/Model.php +++ b/lib/Cake/Model/Model.php @@ -1979,7 +1979,7 @@ class Model extends CakeObject implements CakeEventListener { $this->_clearCache(); $this->validationErrors = array(); $this->whitelist = $_whitelist; - $this->data = false; + $this->data = []; return $success; }