Skip to content

Commit

Permalink
https://github.com/antecedent/patchwork/issues/40
Browse files Browse the repository at this point in the history
  • Loading branch information
antecedent committed Jul 2, 2016
1 parent 001077b commit 6e1a0a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ function endsWith($haystack, $needle)
if (strlen($haystack) < strlen($needle)) {
return false;
}
return strpos($haystack, $needle, -strlen($needle)) !== false;
return substr($haystack, -strlen($needle)) === $needle;
}

function wasRunAsConsoleApp()
Expand Down

0 comments on commit 6e1a0a0

Please sign in to comment.