Skip to content
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

Invalid call to DateTime constructor #49

Open
oliverrahner opened this issue Mar 8, 2024 · 1 comment · May be fixed by #51
Open

Invalid call to DateTime constructor #49

oliverrahner opened this issue Mar 8, 2024 · 1 comment · May be fixed by #51
Assignees

Comments

@oliverrahner
Copy link
Member

DateTime constructor must not be called with null for the $datetime parameter: https://www.php.net/manual/en/datetime.construct.php

$d = new DateTime(null, new DateTimeZone('UTC'));

Replacing null with "now" should do the trick.

@oliverrahner oliverrahner linked a pull request Mar 8, 2024 that will close this issue
@oliverrahner
Copy link
Member Author

The test case currently fails for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants