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
\DateTime::createFromFormat expects a string in the second parameter, but if an integer is passed, internally converts that integer to a string and gives no error.
\DateTime::createFromFormat expects a string in the second parameter, but if an integer is passed, internally converts that integer to a string and gives no error.
The PHP 7 Manual expects a string and if it is not then has to test and convert for all possible parameter types.
Once the passed type is found ( array, bool, float, integer, etc) then a nearest match conversion is used and hopefully is correct. The additional processing takes time and can be eliminated by passing the correct type or casting the passed parameter.
Currently this is neither an error or a warning but could change in the near future or if an option arises to have a compiled version then this would surely be an error.
DateTime::createFromFormat() expects string, integer given
file: system/HTTP/Response.php
The text was updated successfully, but these errors were encountered: