Skip to content

Commit bbbc4c3

Browse files
committed
Remove redundant array check found by Psalm
1 parent 9961e9a commit bbbc4c3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Util.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class Util
2525
*/
2626
public static function isAssoc(array $arr)
2727
{
28-
return (is_array($arr) && (!count($arr) || count(array_filter(array_keys($arr),'is_string')) == count($arr)));
28+
return !count($arr) || count(array_filter(array_keys($arr),'is_string')) == count($arr);
2929
}
3030

3131
/**

0 commit comments

Comments
 (0)