Skip to content

Commit b12ed9f

Browse files
committed
customer return type fix
1 parent 96fee61 commit b12ed9f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Traits/ManagesCustomer.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,9 @@ protected function assertCustomerExists(): void
6868
* Create a Paystack customer for the given model.
6969
*
7070
* @param array $options
71-
* @return \Digikraaft\Paystack\Customer
72-
*
7371
* @throws \Digikraaft\PaystackSubscription\Exceptions\CustomerAlreadyExist
7472
*/
75-
public function createAsPaystackCustomer(array $options = []): PaystackCustomer
73+
public function createAsPaystackCustomer(array $options = [])
7674
{
7775
if ($this->hasPaystackId()) {
7876
throw CustomerAlreadyExist::exists($this);
@@ -85,6 +83,7 @@ public function createAsPaystackCustomer(array $options = []): PaystackCustomer
8583
// Here we will create the customer instance on Paystack and store the ID of the
8684
// user from Paystack. This ID will allow us to retrieve users from Paystack later when we need to work.
8785
Paystack::setApiKey(config('paystacksubscription.secret', env('PAYSTACK_SECRET')));
86+
8887
$customer = PaystackCustomer::create(
8988
$options,
9089
);

0 commit comments

Comments
 (0)