False to array conversion fix. (#73)

This commit is contained in:
Kamil Wylegala 2024-05-24 22:27:19 +02:00 committed by GitHub
parent b993fa8d0c
commit eed5974b24
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View file

@ -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`

View file

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