Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Baspa/buienradar-php-api
Browse files Browse the repository at this point in the history
  • Loading branch information
Baspa committed Mar 16, 2024
2 parents 2c3c4ba + cf6c47e commit 919fa46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Buienradar.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public function actualForecastForStation(MeasuringStation $measuringStation): ?A
foreach ($measurements as $measurement) {
if ($measurement['stationname'] === $measuringStation->value) {
return ActualForecast::fromArray($measurement);

return $measurement;

Check failure on line 61 in src/Buienradar.php

View workflow job for this annotation

GitHub Actions / phpstan

Unreachable statement - code above always terminates.

Check failure on line 61 in src/Buienradar.php

View workflow job for this annotation

GitHub Actions / phpstan

Unreachable statement - code above always terminates.
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Forecast.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@ public function __toString(): string
{
return $this->toJson();
}
}
}

0 comments on commit 919fa46

Please sign in to comment.