From 375da723cb928aac2220168479535736e378aed8 Mon Sep 17 00:00:00 2001 From: Jess Archer Date: Wed, 9 Oct 2024 22:17:26 +1000 Subject: [PATCH] Update src/FormBuilder.php --- src/FormBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FormBuilder.php b/src/FormBuilder.php index 87ca556..4638293 100644 --- a/src/FormBuilder.php +++ b/src/FormBuilder.php @@ -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);