Skip to content

Commit

Permalink
Give webhook secret default null value in fromCredentials
Browse files Browse the repository at this point in the history
  • Loading branch information
cjroebuck authored Oct 18, 2023
1 parent fbc372e commit f2f09c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Urlbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ private function ensureIsValidCredentials( string $apiKey, string $apiSecret )
* @return Urlbox
* @throws InvalidArgumentException
*/
public static function fromCredentials( string $apiKey, string $apiSecret, ?string $webhookSecret, ?Client $client = null ): Urlbox
public static function fromCredentials( string $apiKey, string $apiSecret, ?string $webhookSecret = null, ?Client $client = null ): Urlbox
{
return new self( $apiKey, $apiSecret, $webhookSecret, $client );
}
Expand Down Expand Up @@ -243,4 +243,4 @@ private function getSignature( string $header ): string
return array_reverse( explode( 'sha256=', $header, 2 ) )[0];
}

}
}

0 comments on commit f2f09c2

Please sign in to comment.