Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set variable's default value to be an array aligning it with other Cashier variable defaults #1697

Merged
merged 1 commit into from
Jul 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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