Skip to content

Commit

Permalink
Code style
Browse files Browse the repository at this point in the history
  • Loading branch information
curry684 committed Feb 6, 2024
1 parent 9af8aa3 commit c0236a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Provider/Exception/GitlabIdentityProviderException.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ final class GitlabIdentityProviderException extends IdentityProviderException
* @param ResponseInterface $response Response received from upstream
* @param ?string $message Parsed message
*/
public static function fromResponse(ResponseInterface $response, string $message = null): IdentityProviderException
public static function fromResponse(ResponseInterface $response, ?string $message = null): IdentityProviderException
{
return new self($message ?? $response->getReasonPhrase() ?: self::class, $response->getStatusCode(), $response->getBody()->getContents());
}
Expand Down
2 changes: 1 addition & 1 deletion src/Provider/GitlabResourceOwner.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function getId(): int
*
* @infection-ignore-all Cannot be tested for infection due to external dependency
*/
public function getApiClient(Builder $builder = null): Client
public function getApiClient(?Builder $builder = null): Client
{
if (!class_exists('\\Gitlab\\Client')) {
throw new \LogicException(__METHOD__ . ' requires package m4tthumphrey/php-gitlab-api to be installed and autoloaded'); // @codeCoverageIgnore
Expand Down

0 comments on commit c0236a9

Please sign in to comment.