Skip to content

Commit

Permalink
fix: 🐛 add optional chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
YouneselBarnoussi committed May 6, 2024
1 parent 77dc467 commit 6c2d918
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mollie/UpdateMolliePayment.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ class UpdateMolliePayment extends BaseMollieInteraction implements Contract
public function execute(Payment $dirtyPayment, ?ProvidesOauthInformation $model = null): Payment
{
$this->setAccessToken($model);
if ($model->isMollieTestmode()) {

if ($model?->isMollieTestmode()) {
$dirtyPayment->mode = 'test';
}

Expand Down

0 comments on commit 6c2d918

Please sign in to comment.