There was an error while loading. Please reload this page.
1 parent d474c3a commit 21f1a8bCopy full SHA for 21f1a8b
src/Prompt.php
@@ -403,8 +403,8 @@ private function validate(mixed $value): void
403
}
404
405
$error = match (true) {
406
- is_callable($this->validate) => ($this->validate)($value),
407
isset(static::$validateUsing) => (static::$validateUsing)($this),
+ is_callable($this->validate) => ($this->validate)($value),
408
default => throw new RuntimeException('The validation logic is missing.'),
409
};
410
0 commit comments