Skip to content

Commit be7a297

Browse files
authored
removing some unnecessary commas and consistency edits
1 parent 672009b commit be7a297

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/develop/php/message-passing.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -848,14 +848,14 @@ When working with Queries, you may encounter these errors:
848848
Temporal supports Dynamic Queries, Signals, and Updates.
849849
These are unnamed handlers that are invoked if no other statically defined handler with the given name exists.
850850

851-
Dynamic Handlers provide flexibility to handle cases where the names of Queries, Signals, or Updates, aren't known at run time.
851+
Dynamic Handlers provide flexibility to handle cases where the names of Queries, Signals, or Updates aren't known at run time.
852852

853853
:::caution
854854

855855
Dynamic Handlers should be used judiciously as a fallback mechanism rather than the primary approach.
856856
Overusing them can lead to maintainability and debugging issues down the line.
857857

858-
Instead, Signals, or Queries, should be defined statically whenever possible, with clear names that indicate their purpose.
858+
Instead, Signals, or Queries should be defined statically whenever possible, with clear names that indicate their purpose.
859859
Use static definitions as the primary way of structuring your Workflows.
860860

861861
Reserve Dynamic Handlers for cases where the handler names are not known at development time and need to be looked up dynamically at runtime.
@@ -883,7 +883,7 @@ Workflow::registerDynamicQuery(function (string $name, ValuesInterface $argument
883883
### How to set a Dynamic Signal {#set-a-dynamic-signal}
884884

885885
A Dynamic Signal in Temporal is a Signal that is invoked dynamically at runtime if no other Signal with the same input is registered.
886-
Use [`Workflow::registerDynamicSignal()`](https://php.temporal.io/classes/Temporal-Workflow.html#method_registerDynamicSignal) to set a dynamic Query handler.
886+
Use [`Workflow::registerDynamicSignal()`](https://php.temporal.io/classes/Temporal-Workflow.html#method_registerDynamicSignal) to set a dynamic Signal handler.
887887

888888
The Signal Handler parameters must accept a `string` name and [`ValuesInterface`](https://php.temporal.io/classes/Temporal-DataConverter-ValuesInterface.html) for the arguments.
889889

@@ -900,14 +900,14 @@ Workflow::registerDynamicSignal(function (string $name, ValuesInterface $argumen
900900
### How to set a Dynamic Update {#set-a-dynamic-update}
901901

902902
A Dynamic Update in Temporal is an Update that is invoked dynamically at runtime if no other Update with the same input is registered.
903-
Use [`Workflow::registerDynamicUpdate()`](https://php.temporal.io/classes/Temporal-Workflow.html#method_registerDynamicUpdate) to set a dynamic Query handler.
903+
Use [`Workflow::registerDynamicUpdate()`](https://php.temporal.io/classes/Temporal-Workflow.html#method_registerDynamicUpdate) to set a dynamic Update handler.
904904

905905
The method accepts two arguments:
906906

907907
- Update Handler
908908
- Update Validator (optional) that should throw an exception if the validation fails
909909

910-
Both, the Handler and the Validator must accept a `string` name and [`ValuesInterface`](https://php.temporal.io/classes/Temporal-DataConverter-ValuesInterface.html) for the arguments.
910+
Both the Handler and the Validator must accept a `string` name and [`ValuesInterface`](https://php.temporal.io/classes/Temporal-DataConverter-ValuesInterface.html) for the arguments.
911911

912912
```php
913913
Workflow::registerDynamicUpdate(

0 commit comments

Comments
 (0)