Skip to content

stream_socket_client reference arguments’ type are ignored #12622

@MatTheCat

Description

@MatTheCat

Bug report

Using PHPStan 2.1.5 with PHP 8.3.16 and calling stream_socket_client, $error_code and $error_message’s type will be ignored.

This is weird since they’ve been added by phpstan/phpstan-src#2519.

Code snippet that reproduces the problem

https://phpstan.org/r/2e674df1-652e-41a4-96a3-f8c10d259ceb

Expected output

No errors!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions