From 7f5e2ba0eae128a0cbe0544d076b5765d24d5404 Mon Sep 17 00:00:00 2001 From: Dominik Schwind Date: Mon, 25 Jul 2022 18:52:32 +0200 Subject: [PATCH] Updated the http-provider dependency and the mapRawData function --- Src/Brightsky.php | 2 +- composer.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/Brightsky.php b/Src/Brightsky.php index bb6bceb..ae553d9 100644 --- a/Src/Brightsky.php +++ b/Src/Brightsky.php @@ -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(); diff --git a/composer.json b/composer.json index 47ac768..8e52626 100644 --- a/composer.json +++ b/composer.json @@ -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": {