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

Expected DateTime object give the SimpleXMLElement #12

Closed
Kub-AT opened this issue May 14, 2014 · 5 comments
Closed

Expected DateTime object give the SimpleXMLElement #12

Kub-AT opened this issue May 14, 2014 · 5 comments
Labels

Comments

@Kub-AT
Copy link

Kub-AT commented May 14, 2014

$owm->getWeatherForecast(..., 5) // Hourly Forecast

causes an error

Call to undefined method SimpleXMLElement::format()
/home/jstawowy/www/center/laravel/vendor/cmfcmf/openweathermap-php-api/Cmfcmf/OpenWeatherMap/Util/Time.php on line 52

$from is a SimpleXMLElement object

$owm->getWeatherForecast(..., 14) // Daily Forecast

causes an error

Call to undefined method SimpleXMLElement::add()
/home/jstawowy/www/center/laravel/vendor/cmfcmf/openweathermap-php-api/Cmfcmf/OpenWeatherMap/Util/Time.php on line 57

$to is a SimpleXMLElement object

@cmfcmf
Copy link
Owner

cmfcmf commented May 14, 2014

Hi @Kub-AT, I'm sorry but I cannot reproduce the error. Could you please provide the whole code snippet you are using to produce the error (and your PHP version maybe?)?

Thanks for your feedback!

@Kub-AT
Copy link
Author

Kub-AT commented May 14, 2014

Doh, I installed 2.0.0 version via composer
and there is not checked whether it is the object dateTime

https://github.com/cmfcmf/OpenWeatherMap-PHP-Api/blob/v2.0.0/Cmfcmf/OpenWeatherMap/Util/Time.php

I can close, but I hope for new Releases

@cmfcmf
Copy link
Owner

cmfcmf commented May 14, 2014

Ahh I see, I'll release v.2.0.1 now 👍

@cmfcmf cmfcmf closed this as completed May 14, 2014
@cmfcmf cmfcmf added invalid and removed bug labels May 14, 2014
@cmfcmf
Copy link
Owner

cmfcmf commented May 14, 2014

So, thank you for pointing out that there wasn't a release lately. It should work fine now if you download v.2.0.1. ⭐

@Kub-AT
Copy link
Author

Kub-AT commented May 14, 2014

Thanks for the quick intervention 👍

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

Successfully merging a pull request may close this issue.

2 participants