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

Fixing a bug in date time validator. #35

Merged

Conversation

berry-langerak
Copy link
Member

This PR fixes issue #31.

if ($dt instanceof \DateTime && $dt->getLastErrors()['warning_count'] === 0) {
return $dt;
}
return null;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not in the phpdoc

@rick-nu
Copy link

rick-nu commented May 20, 2015

Looking good, merging!

rick-nu pushed a commit that referenced this pull request May 20, 2015
@rick-nu rick-nu merged commit a33180f into particle-php:master May 20, 2015
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 this pull request may close these issues.

None yet

2 participants