You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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: