Skip to content

Broken Function: Return type of stream_isatty is incorrect #729

@rvock

Description

@rvock

Function URL

https://www.php.net/stream_isatty

PHP Version

8.3

Safe Version

2.5.0,dev-master

Description

The PHP function returns a boolean.
The Safe PHP function returns void:

function stream_isatty($stream): void
{
error_clear_last();
$safeResult = \stream_isatty($stream);
if ($safeResult === false) {
throw StreamException::createFromPhpError();
}
}

This means, we cannot use the Safe PHP version

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions