chore: update dependencies for Laravel 9 (#6098)

This commit is contained in:
Alexis Saettler
2022-08-12 18:42:35 +02:00
committed by GitHub
parent 6a7f49fd90
commit 78cd01b2b5
78 changed files with 1889 additions and 2286 deletions
@@ -16,7 +16,6 @@ use App\Http\Controllers\Controller;
use Illuminate\Http\RedirectResponse;
use Illuminate\Contracts\View\Factory;
use Stripe\Exception\ApiErrorException;
use Stripe\PaymentIntent as StripePaymentIntent;
use Laravel\Cashier\Exceptions\IncompletePayment;
use App\Services\Account\Settings\ArchiveAllContacts;
@@ -51,7 +50,7 @@ class SubscriptionsController extends Controller
}
try {
$planInformation = $this->stripeCall(function () use ($subscription) {
$planInformation = $this->stripeCall(function () use ($subscription): ?array {
return InstanceHelper::getPlanInformationFromSubscription($subscription);
});
} catch (StripeException $e) {
@@ -183,8 +182,8 @@ class SubscriptionsController extends Controller
public function confirmPayment($id)
{
try {
$payment = $this->stripeCall(function () use ($id) {
return StripePaymentIntent::retrieve($id, Cashier::stripeOptions());
$payment = $this->stripeCall(function () use ($id): \Stripe\PaymentIntent {
return Cashier::stripe()->paymentIntents->retrieve($id);
});
} catch (StripeException $e) {
return back()->withErrors($e->getMessage());