Skip to content

Commit

Permalink
Update src/FormBuilder.php
Browse files Browse the repository at this point in the history
  • Loading branch information
jessarcher authored Oct 9, 2024
1 parent 882ce90 commit 375da72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FormBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function add(Closure $step, ?string $name = null, bool $ignoreWhenReverti
/**
* Add a new conditional step.
*/
public function addIf(Closure $condition, Closure $step, ?string $name = null, bool $ignoreWhenReverting = false): self
public function addIf(bool|Closure $condition, Closure $step, ?string $name = null, bool $ignoreWhenReverting = false): self
{
$this->steps[] = new FormStep($step, $condition, $name, $ignoreWhenReverting);

Expand Down

0 comments on commit 375da72

Please sign in to comment.