From 8a93e018e7948f0820f697a87b9f8f4340b7edca Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Tue, 22 Oct 2024 11:15:04 +0000 Subject: [PATCH] Dev: First parameter for `Editor->validator()` can be callable --- Editor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Editor.php b/Editor.php index be6607c..c89fb35 100644 --- a/Editor.php +++ b/Editor.php @@ -879,7 +879,7 @@ public function validate(&$errors, $data) * and remove actions performed from the client-side. Multiple validators * can be added. * - * @param bool $afterFields `true` to run the validator after field validation, + * @param bool|callable $afterFields `true` to run the validator after field validation, * `false` to run before. Can be omitted (which is the equivalent of `false`). * @param callable($this, self::ACTION_*, array): ?string $_ Function to execute when validating the input data. * It is passed three parameters: 1. The editor instance, 2. The action