Skip to content

Commit

Permalink
Laravel 9 Support (#21)
Browse files Browse the repository at this point in the history
* Adding laravel 9.0 in composer.json

* Changing SubscriptionRepository reference to array to \Aws\Result

Co-authored-by: Jon Baker <[email protected]>
  • Loading branch information
jdavidbakr and jonb-sf authored May 6, 2022
1 parent 5db9ed8 commit 0e53b7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -61,4 +61,4 @@
},
"minimum-stability": "dev",
"prefer-stable": true
}
}
2 changes: 1 addition & 1 deletion src/SubscriptionRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 0e53b7f

Please sign in to comment.