diff --git a/composer.json b/composer.json index 8981647..4d98344 100644 --- a/composer.json +++ b/composer.json @@ -24,7 +24,7 @@ "aws/aws-sdk-php": "^3.80", "bref/bref": "^1.1", "guzzlehttp/guzzle": "^6.3|^7.0", - "laravel/framework": "^6.0|^7.0|^8.0" + "laravel/framework": "^6.0|^7.0|^8.0|^9.0" }, "require-dev": { "mockery/mockery": "^1.2", @@ -61,4 +61,4 @@ }, "minimum-stability": "dev", "prefer-stable": true -} +} \ No newline at end of file diff --git a/src/SubscriptionRepository.php b/src/SubscriptionRepository.php index f80481f..df2e1e0 100644 --- a/src/SubscriptionRepository.php +++ b/src/SubscriptionRepository.php @@ -36,7 +36,7 @@ public function getConnectionIdsForChannel(string ...$channels): Collection $responses = Utils::all($promises)->wait(); return collect($responses) - ->flatmap(fn (array $result): array => $result['Items']) + ->flatmap(fn (\Aws\Result $result): array => $result['Items']) ->map(fn (array $item): string => $item['connectionId']['S']) ->unique(); }