Skip to content

Commit

Permalink
Remove incorrect class-string in endpoints key (can be interface)
Browse files Browse the repository at this point in the history
  • Loading branch information
pionl committed Aug 15, 2023
1 parent 12dd9d2 commit 1b40e0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/AbstractApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ abstract class AbstractApi implements ApiContract
private ?SendRequestAction $sendRequestAction = null;

/**
* @var array<class-string<AbstractEndpoint>, class-string<AbstractEndpoint>>
* @var array<class-string, class-string<AbstractEndpoint>>
*/
private readonly array $overrideEndpoints;

/**
* @param array<class-string<AbstractEndpoint>, class-string<AbstractEndpoint>> $overrideEndpoints
* @param array<class-string, class-string<AbstractEndpoint>> $overrideEndpoints
*/
public function __construct(
private readonly AbstractEnvironment $environment,
Expand Down
2 changes: 1 addition & 1 deletion src/Contracts/EnvironmentOverrideEndpointsContract.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
interface EnvironmentOverrideEndpointsContract
{
/**
* @return array<class-string<AbstractEndpoint>, class-string<AbstractEndpoint>>
* @return array<class-string, class-string<AbstractEndpoint>>
*/
public function endpoints(): array;
}

0 comments on commit 1b40e0e

Please sign in to comment.