Skip to content

Commit

Permalink
Set variable's default value to be an array aligning it with other Ca…
Browse files Browse the repository at this point in the history
…shier variable defaults (#1697)
  • Loading branch information
u01jmg3 committed Jul 23, 2024
1 parent 5512f24 commit 8deb1f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Concerns/ManagesCustomer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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'] ?? []);
Expand Down

0 comments on commit 8deb1f5

Please sign in to comment.