🔧
This commit is contained in:
6
vendor/sebastian/environment/src/Console.php
vendored
6
vendor/sebastian/environment/src/Console.php
vendored
@@ -97,7 +97,7 @@ final class Console
|
||||
/**
|
||||
* Returns if the file descriptor is an interactive terminal or not.
|
||||
*
|
||||
* Normally, we want to use a resource as a parameter, yet sadly it's not always awailable,
|
||||
* Normally, we want to use a resource as a parameter, yet sadly it's not always available,
|
||||
* eg when running code in interactive console (`php -a`), STDIN/STDOUT/STDERR constants are not defined.
|
||||
*
|
||||
* @param int|resource $fileDescriptor
|
||||
@@ -112,7 +112,7 @@ final class Console
|
||||
if (function_exists('fstat')) {
|
||||
$stat = @fstat(STDOUT);
|
||||
|
||||
return $stat && 0020000 === ($stat['mode'] & 0170000);
|
||||
return $stat && 0o020000 === ($stat['mode'] & 0o170000);
|
||||
}
|
||||
|
||||
return false;
|
||||
@@ -166,7 +166,7 @@ final class Console
|
||||
$pipes,
|
||||
null,
|
||||
null,
|
||||
['suppress_errors' => true]
|
||||
['suppress_errors' => true],
|
||||
);
|
||||
|
||||
if (is_resource($process)) {
|
||||
|
||||
Reference in New Issue
Block a user