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

Check if $geo is null before evaluating #93

Merged
merged 1 commit into from
Apr 24, 2017

Conversation

jrjohnson
Copy link
Contributor

Otherwise $geo becomes defacto required by setLocation.

To make matters more interesting PHP < 7 evaluates get_class(null) as the current class name so the error when null is passed says:

The parameter 'geo' must be a string or an instance of \Eluceo\iCal\Property\Event\Geo but an instance of Eluceo\iCal\Component\Event was given

Otherwise $geo becomes defacto required by setLocation.
@markuspoerschke markuspoerschke merged commit a00397f into markuspoerschke:master Apr 24, 2017
@markuspoerschke
Copy link
Owner

Thanks for your contribution! Looks good! :)

@jrjohnson jrjohnson deleted the null-geo branch April 24, 2017 21:38
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.

2 participants