Skip to content

Commit

Permalink
Fixes #452: Use is_file instead of file_exists when checking for sheb…
Browse files Browse the repository at this point in the history
…ang files.
  • Loading branch information
greg-1-anderson committed Oct 10, 2016
1 parent 7acff86 commit e180cc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ protected function shebang($args)
*/
protected function isShebangFile($filepath)
{
if (!file_exists($filepath)) {
if (!is_file($filepath)) {
return false;
}
$fp = fopen($filepath, "r");
Expand Down

0 comments on commit e180cc7

Please sign in to comment.