mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Minor optimization in helper. No need cast, always is array.
This commit is contained in:
parent
8d5acf0706
commit
e328043586
1 changed files with 1 additions and 1 deletions
|
@ -317,7 +317,7 @@ class Helper extends Overloadable {
|
|||
if (!is_array($exclude)) {
|
||||
$exclude = array();
|
||||
}
|
||||
$keys = array_diff(array_keys($options), array_merge((array)$exclude, array('escape')));
|
||||
$keys = array_diff(array_keys($options), array_merge($exclude, array('escape')));
|
||||
$values = array_intersect_key(array_values($options), $keys);
|
||||
$escape = $options['escape'];
|
||||
$attributes = array();
|
||||
|
|
Loading…
Reference in a new issue