-
Notifications
You must be signed in to change notification settings - Fork 28
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
ErrorException: Call to a member function format() on boolean /AvaTax/GetTaxRequest.php [ 44 ] #30
Comments
I cannot reproduce this issue. What PHP version are you running? Need more information to test. |
Does changing
to
Fix the issue? I don't know why the code is using microtime. The DocDate is a date not date and time. Creating a new |
We're having the same issue with PHP 5.6.5, we were not able to reproduce it so far. About using that much accuracy, the microtime information is not used in
I don't know why a DateTime is being used to identify the DocCode by default, maybe generating a unique id would be enough and would allow us to generate the DateTime without the microtime as @skylord123 suggested. |
Finally we were able to reproduce it. Extracted from http://php.net/manual/en/datetime.createfromformat.php
We will create a PR just now |
Hi |
@TkachukRuslan the issue was reproduced and a PR that fixes it was opened (#35). We're now waiting it to be merged. |
DateTime returns boolean "$date = \DateTime::createFromFormat('U.u', microtime(true));" , no object, since can not convert the input parameters to DateTime object.
ErrorException [ 1 ]: Call to a member function format() on boolean
/AvaTax/GetTaxRequest.php [ 44 ]
The text was updated successfully, but these errors were encountered: