-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AMQPMessage::basic_consume + $nowait=null results in $nowait=true #422
Comments
Why do you think so? It's not unreasonable for a library to default to |
In PHP it is an unwritten standard that null values always be treated as falsy when checking for a boolean result; mainly because PHP specifies this definition via type juggling semantics. That said, the Finally, in this specific case, the default parameter value for $nowait (in |
The function API suggests you use a boolean value, not |
|
This is a minor, but annoying, bug. Basically, if
$nowait=null
is given toAMQPMessage::basic_consume
, it's treated as if$nowait=true
. It should be treated as$nowait=false
.The problem is that
basic_consume
uses the identity operator (===
) instead of the equality operator (==
) when checking $nowait on line 397.The text was updated successfully, but these errors were encountered: