-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
Wrong phpDoc for AbstractProtocol::_expect #161
Labels
Bug
Something isn't working
Comments
Could you point to a code fragment (absolute URI) please? |
laminas-mail/src/Protocol/AbstractProtocol.php Lines 310 to 321 in ee318f5
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
Summary
The phpDoc suggests string|array as type of parameter $code, while all calls are int or array of int
Current behavior
All calls of _expect are done with int or array of int. This is then implicitly converted by call of in_array without $strict parameter with previously processed string via preg_split, which means $strict = false and implicit conversion. This is confusing and inconsistent in terms of clean code.
Expected behavior
Either suggest int codes that will be converted to string explicitly or use calls with actual string parameters.
The text was updated successfully, but these errors were encountered: