Skip to content

Commit

Permalink
Removed a duplicate TO_INT conversion from tokenize
Browse files Browse the repository at this point in the history
  • Loading branch information
acelot committed Aug 2, 2018
1 parent 8fd2fa1 commit 12b073e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/string_helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,5 @@ function tokenize(string $string, $delimiter = ',', int $options = TK_DEFAULTS):
$arr = array_filter($arr);
}

if ($options & TK_TO_INT) {
$arr = array_map('intval', $arr);
}

return $arr;
}

0 comments on commit 12b073e

Please sign in to comment.