Skip to content

Commit

Permalink
PHPStan: Narrow types (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarStark authored Sep 3, 2024
1 parent abb4eb1 commit 4244a5e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Client/CancelRetryClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function buildApiUrl(): string
/**
* Builds array for CURLOPT_POSTFIELDS curl argument.
*
* @return array<string, string>
* @return array{token: string}
*/
public function buildCurlPostFields(Receipt $receipt): array
{
Expand Down
2 changes: 1 addition & 1 deletion src/Client/SubscriptionClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function buildApiUrl(): string
/**
* Builds array for CURLOPT_POSTFIELDS curl argument.
*
* @return array<string, string>
* @return array{token: string, subscription: string, user: string, device_name?: string, sound?: string}
*/
public function buildCurlPostFields(Subscription $subscription, Recipient $recipient, ?Sound $sound = null): array
{
Expand Down
2 changes: 1 addition & 1 deletion src/Client/UserGroupValidationClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function buildApiUrl(): string
/**
* Builds array for CURLOPT_POSTFIELDS curl argument.
*
* @return array<string, string>
* @return array{token: string, user: string, device?: string}
*/
public function buildCurlPostFields(Application $application, Recipient $recipient): array
{
Expand Down

0 comments on commit 4244a5e

Please sign in to comment.