Fix/metar reading (#354)

* Account for empty ICAO; added tests

* Fix null returns

* Fix typo in volume units display

* Add version field for bug report template

* Some more changes to the bug report template
This commit is contained in:
Nabeel S
2019-08-08 17:41:53 -04:00
committed by GitHub
parent 5cafebe4d6
commit 47be7507f0
7 changed files with 86 additions and 13 deletions

View File

@@ -35,6 +35,10 @@ class AviationWeather extends Metar
*/
protected function metar($icao): string
{
if ($icao === '') {
return '';
}
$url = static::METAR_URL.$icao;
try {