Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
damienalexandre committed Jun 28, 2024
1 parent f4a38bc commit 709e7ed
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ClientFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

class ClientFactory
{
public static function create(string $token, ClientInterface $httpClient = null): Client
public static function create(string $token, ?ClientInterface $httpClient = null): Client
{
// Find a default HTTP client if none provided
if (null === $httpClient) {
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/SlackErrorResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class SlackErrorResponse extends \Exception

private $responseMetadata;

public function __construct(string $errorCode, ?array $responseMetadata, \Throwable $previous = null)
public function __construct(string $errorCode, ?array $responseMetadata, ?\Throwable $previous = null)
{
$this->errorCode = $errorCode;

Expand Down
2 changes: 1 addition & 1 deletion tests/SlackTokenDependentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ protected function setUp(): void
}
}

protected function createClient(string $token = null): Client
protected function createClient(?string $token = null): Client
{
// On GitHub Action, we get rate limit issues with Slack API calls because tests are run in parallel
// This "sleep" method tries to share the load.
Expand Down

0 comments on commit 709e7ed

Please sign in to comment.