Skip to content

Commit 89da479

Browse files
authored
Merge pull request #31 from programmatordev/OPA-37-change-onecall-history-entities-names
Changed parameter name
2 parents 1d1da59 + e1a79e2 commit 89da479

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Endpoint/OneCallEndpoint.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -95,18 +95,18 @@ public function getHistoryMoment(float $latitude, float $longitude, \DateTimeInt
9595
* @throws UnexpectedErrorException
9696
* @throws ValidationException
9797
*/
98-
public function getHistoryAggregate(float $latitude, float $longitude, \DateTimeInterface $dateTime): WeatherAggregate
98+
public function getHistoryAggregate(float $latitude, float $longitude, \DateTimeInterface $date): WeatherAggregate
9999
{
100100
$this->validateCoordinate($latitude, $longitude);
101-
$this->validateLessThan('dateTime', $dateTime, new \DateTimeImmutable('now'));
101+
$this->validateLessThan('dateTime', $date, new \DateTimeImmutable('now'));
102102

103103
$data = $this->sendRequest(
104104
method: 'GET',
105105
baseUrl: $this->urlOneCallHistoryAggregate,
106106
query: [
107107
'lat' => $latitude,
108108
'lon' => $longitude,
109-
'date' => $dateTime->format('Y-m-d'),
109+
'date' => $date->format('Y-m-d'),
110110
'units' => $this->getUnitSystem(),
111111
'lang' => $this->getLanguage()
112112
]

0 commit comments

Comments
 (0)