Skip to content

Commit

Permalink
Updated the http-provider dependency and the mapRawData function
Browse files Browse the repository at this point in the history
  • Loading branch information
lostfocus committed Jul 25, 2022
1 parent b530545 commit 7f5e2ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Src/Brightsky.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function getSources(): array
/**
* @throws ServerException
*/
protected function mapRawData(float $latitude, float $longitude, array $rawData, ?string $type = null): Weather|WeatherCollection
protected function mapRawData(float $latitude, float $longitude, array $rawData, ?string $type = null, ?string $units = null): Weather|WeatherCollection
{
if (!array_key_exists('weather', $rawData)) {
throw new ServerException();
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"require": {
"php": "8.0.*|8.1.*",
"ext-json": "*",
"php-weather/http-provider": "^0.1.0",
"php-weather/http-provider": "^0.2.0",
"php-weather/common": "^0.2.0"
},
"require-dev": {
Expand Down

0 comments on commit 7f5e2ba

Please sign in to comment.