Skip to content

Commit 8a797b1

Browse files
committed
Refactored PR #13
1 parent 7254437 commit 8a797b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Polyline.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,6 @@ function ($current) use (&$flatten) {
147147
*/
148148
final public static function pair( $list )
149149
{
150-
return array_chunk($list, 2);
150+
return is_array($list) ? array_chunk($list, 2) : array();
151151
}
152152
}

0 commit comments

Comments
 (0)