From e1a79e2fb944f94c102b38692d2c04c33d8360f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=CC=81=20Pimpa=CC=83o?= Date: Mon, 17 Jul 2023 20:09:07 +0100 Subject: [PATCH] chore: changed parameter name --- src/Endpoint/OneCallEndpoint.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Endpoint/OneCallEndpoint.php b/src/Endpoint/OneCallEndpoint.php index 16e1356..9026b09 100644 --- a/src/Endpoint/OneCallEndpoint.php +++ b/src/Endpoint/OneCallEndpoint.php @@ -95,10 +95,10 @@ public function getHistoryMoment(float $latitude, float $longitude, \DateTimeInt * @throws UnexpectedErrorException * @throws ValidationException */ - public function getHistoryAggregate(float $latitude, float $longitude, \DateTimeInterface $dateTime): WeatherAggregate + public function getHistoryAggregate(float $latitude, float $longitude, \DateTimeInterface $date): WeatherAggregate { $this->validateCoordinate($latitude, $longitude); - $this->validateLessThan('dateTime', $dateTime, new \DateTimeImmutable('now')); + $this->validateLessThan('dateTime', $date, new \DateTimeImmutable('now')); $data = $this->sendRequest( method: 'GET', @@ -106,7 +106,7 @@ public function getHistoryAggregate(float $latitude, float $longitude, \DateTime query: [ 'lat' => $latitude, 'lon' => $longitude, - 'date' => $dateTime->format('Y-m-d'), + 'date' => $date->format('Y-m-d'), 'units' => $this->getUnitSystem(), 'lang' => $this->getLanguage() ]