From 37d01326ae1eda357d953c75e8ad820333c91312 Mon Sep 17 00:00:00 2001 From: Jonathan Goode Date: Tue, 23 Jul 2024 09:48:59 +0100 Subject: [PATCH] Set variable's default value to be an array aligning it with other Cashier variable defaults --- src/Concerns/ManagesCustomer.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Concerns/ManagesCustomer.php b/src/Concerns/ManagesCustomer.php index 9f1f324e..278f43f6 100644 --- a/src/Concerns/ManagesCustomer.php +++ b/src/Concerns/ManagesCustomer.php @@ -53,12 +53,12 @@ protected function assertCustomerExists() * Create a Stripe customer for the given model. * * @param array $options - * @param array|null $requestOptions + * @param array $requestOptions * @return \Stripe\Customer * * @throws \Laravel\Cashier\Exceptions\CustomerAlreadyCreated */ - public function createAsStripeCustomer(array $options = [], array $requestOptions = null) + public function createAsStripeCustomer(array $options = [], array $requestOptions = []) { if ($this->hasStripeId()) { throw CustomerAlreadyCreated::exists($this); @@ -117,10 +117,10 @@ public function updateStripeCustomer(array $options = []) * Get the Stripe customer instance for the current user or create one. * * @param array $options - * @param array|null $requestOptions + * @param array $requestOptions * @return \Stripe\Customer */ - public function createOrGetStripeCustomer(array $options = [], array $requestOptions = null) + public function createOrGetStripeCustomer(array $options = [], array $requestOptions = []) { if ($this->hasStripeId()) { return $this->asStripeCustomer($options['expand'] ?? []);