Skip to content

Commit

Permalink
Fix phpdoc for Workflow::registerUpdate()
Browse files Browse the repository at this point in the history
  • Loading branch information
roxblnfk committed Sep 10, 2024
1 parent 4507c30 commit 16b8b95
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Workflow.php
Original file line number Diff line number Diff line change
Expand Up @@ -395,10 +395,13 @@ public static function registerSignal(string $queryType, callable $handler): Sco
* );
* ```
*
* Note that the validator must have the same signature as the Update method:
*
* @param non-empty-string $name
* @param callable $handler Handler function to execute the update.
* @param callable|null $validator Validator function to check the input. It should throw an exception
* if the input is invalid.
* Note that the validator must have the same parameters as the handler.
* @throws OutOfContextException in the absence of the workflow execution context.
* @since 2.11.0
*/
public static function registerUpdate(
string $name,
Expand Down

0 comments on commit 16b8b95

Please sign in to comment.