Skip to content

Commit

Permalink
False to array conversion fix. (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilwylegala authored May 24, 2024
1 parent b993fa8 commit eed5974
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Model/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -1979,7 +1979,7 @@ protected function _doSave($data = null, $options = array()) {
$this->_clearCache();
$this->validationErrors = array();
$this->whitelist = $_whitelist;
$this->data = false;
$this->data = [];

return $success;
}
Expand Down

0 comments on commit eed5974

Please sign in to comment.