Skip to content

Commit

Permalink
Merge pull request #9615 from cakephp/dereuromark-patch-1
Browse files Browse the repository at this point in the history
Add missing type cast
  • Loading branch information
markstory committed Oct 14, 2016
2 parents 841886f + 3c1fbef commit 7e0d21c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/Component/FlashComponent.php
Expand Up @@ -108,7 +108,7 @@ public function set($message, array $options = [])

$messages = [];
if ($options['clear'] === false) {
$messages = $this->_session->read('Flash.' . $options['key']);
$messages = (array)$this->_session->read('Flash.' . $options['key']);
}

$messages[] = [
Expand Down

0 comments on commit 7e0d21c

Please sign in to comment.