Skip to content

Commit

Permalink
Fix calling implode() with null
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico Hoffmann committed Jan 5, 2021
1 parent 07ce8d8 commit 4526404
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Toolkit/A.php
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ public static function sort(array $array, string $field, string $direction = 'de
*/
public static function isAssociative(array $array): bool
{
return ctype_digit(implode(null, array_keys($array))) === false;
return ctype_digit(implode('', array_keys($array))) === false;
}

/**
Expand Down

0 comments on commit 4526404

Please sign in to comment.