From 5884e525f6e9fd1d9991fd33e0a954e9e177d35d Mon Sep 17 00:00:00 2001 From: Artur Gauzer Date: Tue, 31 Oct 2023 19:01:31 +0600 Subject: [PATCH] Fix createCheckout --- src/Coinbase.php | 2 +- src/Facades/Coinbase.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Coinbase.php b/src/Coinbase.php index 4b09589..c09752c 100755 --- a/src/Coinbase.php +++ b/src/Coinbase.php @@ -120,7 +120,7 @@ public function getCheckouts(): array * @param array $params * @return array */ - public function createCheckout(array $params = []): array + public function createCheckout(array $params): array { return $this->makeRequest('post', 'checkouts', [], $params); } diff --git a/src/Facades/Coinbase.php b/src/Facades/Coinbase.php index 66ff005..cfc7d90 100755 --- a/src/Facades/Coinbase.php +++ b/src/Facades/Coinbase.php @@ -11,7 +11,7 @@ * @method static array cancelCharge(string $chargeId) Cancels an existing charge by supplying its id or 8 character short-code. * @method static array resolveCharge(string $chargeId) Resolves an existing, unresolved charge by supplying its id or 8 character short-code. * @method static array getCheckouts() Lists all checkouts. - * @method static array createCheckout(array $params = []) Creates a new checkout. + * @method static array createCheckout(array $params) Creates a new checkout. * @method static array getCheckout(string $checkoutId) Retrieves an existing checkout. * @method static array updateCheckout(string $checkoutId, array $params = []) Updates an existing checkout. * @method static array deleteCheckout(string $checkoutId) Deletes an existing checkout.