Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Apr 14, 2022
1 parent f28a9ed commit 3fade0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Console.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public function isInteractive($fileDescriptor = self::STDOUT): bool
if (function_exists('fstat')) {
$stat = @fstat(STDOUT);

return $stat ? 0020000 === ($stat['mode'] & 0170000) : false;
return $stat && 0020000 === ($stat['mode'] & 0170000);
}

return false;
Expand Down

0 comments on commit 3fade0c

Please sign in to comment.