Skip to content

Commit

Permalink
[!]: re-write -> "object oriented" -> try to fix for PHP < 7 v3
Browse files Browse the repository at this point in the history
  • Loading branch information
voku committed Apr 5, 2017
1 parent b9d701d commit 6d57369
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/voku/helper/Phonetic.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public function phonetic_matches($needle, array $haystack)
uasort(
$result, function ($a, $b) {
if ($a === $b) {
return 0;
return -1;
}

return (count($a) > count($b)) ? -1 : 1;
Expand Down

0 comments on commit 6d57369

Please sign in to comment.