diff --git a/src/Buienradar.php b/src/Buienradar.php index 39ee7ab..bf8e790 100755 --- a/src/Buienradar.php +++ b/src/Buienradar.php @@ -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; } } diff --git a/src/Forecast.php b/src/Forecast.php index fff60bc..36bf354 100644 --- a/src/Forecast.php +++ b/src/Forecast.php @@ -82,4 +82,4 @@ public function __toString(): string { return $this->toJson(); } -} \ No newline at end of file +}