An error occurs if Wind->deg does not exist
cookie-maker opened this issue · 3 comments
cookie-maker commented
An error occurs if Wind->deg does not exist.
Sometimes you can not get it depending on the city.
[For example]
method : OpenWeatherMap->getWeatherGroup
The city id : 2113126(Akita,Japan)
Wind Object has only 'speed'.
[Error Message]
Undefined property: stdClass::$deg
OpenWeatherMap/CurrentWeather.php
Line Number: 122
cmfcmf commented
Hey @cookie-maker,
thanks for the detailed report including examples!
A fix is on it's way! 🍪
cmfcmf commented
@cookie-maker this should be fixed as of version 2.2.1.
cookie-maker commented
@cmfcmf Thank you!