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?
to your account
Invocation of \Nette\Utils\DateTime::from(NULL) causes 'PHP Fatal error: Uncaught TypeError: DateTime::__construct() expects parameter 1 to be string, null given in ...'.
var_dump( \Nette\Utils\DateTime::from(NULL) )
Return current time as in version 2.4/2.5.
Add special case to \Nette\Utils\DateTime::from() when parameter is NULL then call new static( 'now' ).
new static( 'now' )
The text was updated successfully, but these errors were encountered:
DateTime::from(null) fixed [Closes #211]
@dg Thank you.
Sorry, something went wrong.
No branches or pull requests