Skip to content

Commit

Permalink
Dev: First parameter for Editor->validator() can be callable
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanJard committed Oct 22, 2024
1 parent d24cdf7 commit 8a93e01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8a93e01

Please sign in to comment.