Skip to content

Commit

Permalink
fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
vasilvestre committed Jul 30, 2024
1 parent 4a6878c commit 841c881
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Foundry/Updater/AdminUserUpdater.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function __invoke(object $object, array $attributes): array
return ($this->decorated)($object, $attributes);
}

if ($attributes['api'] === true ?? null) {
if ($attributes['api'] === true) {
$object->addRole('ROLE_API_ACCESS');
}

Expand Down
2 changes: 1 addition & 1 deletion src/Foundry/Updater/OrderUpdater.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function __invoke(object $object, array $attributes): array
$this->selectPayment($object, $paymentMethod, $createdAt);
$this->completeCheckout($object);

if (isset($attributes['fulfilled']) ?? false) {
if ($attributes['fulfilled'] === true) {
$this->fulfillOrder($object);
}

Expand Down

0 comments on commit 841c881

Please sign in to comment.