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

NullArgument emitted for new DateTime(null, new DateTimeZone('America/Los_Angeles')) #2590

Closed
TysonAndre opened this issue Jan 10, 2020 · 0 comments
Labels

Comments

@TysonAndre
Copy link
Contributor

It's possible to suppress or work around this by writing 'now' or suppressing it, but it is working code with examples in official documentation https://www.php.net/manual/en/datetime.construct.php

// Current date/time in the specified time zone.
$date = new DateTime(null, new DateTimeZone('Pacific/Nauru'));
echo $date->format('Y-m-d H:i:sP') . "\n";

Related to phan/PHPSignatures#6 (comment) - low priority to me

@muglug muglug added the bug label Jan 10, 2020
@vimeo vimeo deleted a comment from psalm-github-bot bot Jan 10, 2020
@muglug muglug closed this as completed in df8e384 Jan 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants