This commit is contained in:
2025-05-12 14:25:25 +02:00
parent ab2db755ef
commit 9e378ca2b7
2719 changed files with 46505 additions and 60181 deletions

View File

@@ -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)) {