mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Adding cast to avoind fatal error in Helper class
This commit is contained in:
parent
9fac0b92c6
commit
57e6ac7eb7
1 changed files with 1 additions and 1 deletions
|
@ -370,7 +370,7 @@ class Helper extends Object {
|
|||
*/
|
||||
public function _parseAttributes($options, $exclude = null, $insertBefore = ' ', $insertAfter = null) {
|
||||
if (!is_string($options)) {
|
||||
$options = $options + array('escape' => true);
|
||||
$options = (array) $options + array('escape' => true);
|
||||
|
||||
if (!is_array($exclude)) {
|
||||
$exclude = array();
|
||||
|
|
Loading…
Reference in a new issue