mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-25 16:27:20 +00:00
False to array conversion fix. (#73)
This commit is contained in:
parent
b993fa8d0c
commit
eed5974b24
2 changed files with 5 additions and 1 deletions
|
@ -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`
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue