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; }