Skip to content

Commit

Permalink
fix: replace "true" typehint with "bool"
Browse files Browse the repository at this point in the history
  • Loading branch information
Kreyu committed Oct 23, 2024
1 parent 3607227 commit f89638d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Action/Type/ActionType.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public function getParent(): ?string
return null;
}

private function resolveConfirmationOption(true|array $confirmation): array
private function resolveConfirmationOption(bool|array $confirmation): array
{
if (true === $confirmation) {
$confirmation = [];
Expand All @@ -143,6 +143,6 @@ private function resolveConfirmationOption(true|array $confirmation): array
->setAllowedValues('type', ['danger', 'warning', 'info'])
;

return $optionsResolver->resolve($confirmation);
return $optionsResolver->resolve($confirmation ?: []);
}
}

0 comments on commit f89638d

Please sign in to comment.