← All changes
|
vendor/woocommerce/action-scheduler/classes/ActionScheduler_ActionFactory.php
+7
-7
1.6.4
→
trunk
View file →
| @@ -7,19 +7,19 @@ | ||
| 7 | 7 | |
| 8 | 8 | /** |
| 9 | 9 | * Return stored actions for given params. |
| 10 | 10 | * |
| 11 | - * @param string $status The action's status in the data store. | |
| 12 | - * @param string $hook The hook to trigger when this action runs. | |
| 13 | - * @param array $args Args to pass to callbacks when the hook is triggered. | |
| 14 | - * @param ActionScheduler_Schedule|null $schedule The action's schedule. | |
| 15 | - * @param string $group A group to put the action in. | |
| 11 | + * @param string $status The action's status in the data store. | |
| 12 | + * @param string $hook The hook to trigger when this action runs. | |
| 13 | + * @param array $args Args to pass to callbacks when the hook is triggered. | |
| 14 | + * @param ActionScheduler_Schedule $schedule The action's schedule. | |
| 15 | + * @param string $group A group to put the action in. | |
| 16 | 16 | * phpcs:ignore Squiz.Commenting.FunctionComment.ExtraParamComment |
| 17 | - * @param int $priority The action priority. | |
| 17 | + * @param int $priority The action priority. | |
| 18 | 18 | * |
| 19 | 19 | * @return ActionScheduler_Action An instance of the stored action. |
| 20 | 20 | */ |
| 21 | - public function get_stored_action( $status, $hook, array $args = array(), ?ActionScheduler_Schedule $schedule = null, $group = '' ) { | |
| 21 | + public function get_stored_action( $status, $hook, array $args = array(), ActionScheduler_Schedule $schedule = null, $group = '' ) { | |
| 22 | 22 | // The 6th parameter ($priority) is not formally declared in the method signature to maintain compatibility with |
| 23 | 23 | // third-party subclasses created before this param was added. |
| 24 | 24 | $priority = func_num_args() >= 6 ? (int) func_get_arg( 5 ) : 10; |
| 25 | 25 | |