-
-
Notifications
You must be signed in to change notification settings - Fork 930
Closed
phpstan/phpstan-src
#3793Labels
Milestone
Description
Bug report
When passing a float value to AMQPConnection::setReadTimeout()
, PHPStan complains that the method expected an integer. I believe this is a false positive.
The repository of the AMQP extension contains stub files and according to those, a float
is expected:
Code snippet that reproduces the problem
<?php declare(strict_types = 1);
function setTimeout(AMQPConnection $connection): void
{
$connection->setReadTimeout(1.337);
}
https://phpstan.org/r/00968283-bca7-4e7d-aae1-aeff08cac16a
Expected output
No error.
Did PHPStan help you today? Did it make you happy in any way?
It sure did! Keep up the good work!