Skip to content

Commit 0e53b7f

Browse files
jdavidbakrjonb-sf
andauthored
Laravel 9 Support (#21)
* Adding laravel 9.0 in composer.json * Changing SubscriptionRepository reference to array to \Aws\Result Co-authored-by: Jon Baker <[email protected]>
1 parent 5db9ed8 commit 0e53b7f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"aws/aws-sdk-php": "^3.80",
2525
"bref/bref": "^1.1",
2626
"guzzlehttp/guzzle": "^6.3|^7.0",
27-
"laravel/framework": "^6.0|^7.0|^8.0"
27+
"laravel/framework": "^6.0|^7.0|^8.0|^9.0"
2828
},
2929
"require-dev": {
3030
"mockery/mockery": "^1.2",
@@ -61,4 +61,4 @@
6161
},
6262
"minimum-stability": "dev",
6363
"prefer-stable": true
64-
}
64+
}

src/SubscriptionRepository.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function getConnectionIdsForChannel(string ...$channels): Collection
3636
$responses = Utils::all($promises)->wait();
3737

3838
return collect($responses)
39-
->flatmap(fn (array $result): array => $result['Items'])
39+
->flatmap(fn (\Aws\Result $result): array => $result['Items'])
4040
->map(fn (array $item): string => $item['connectionId']['S'])
4141
->unique();
4242
}

0 commit comments

Comments
 (0)