← All changes
|
vendor/woocommerce/action-scheduler/classes/ActionScheduler_InvalidActionException.php
+2
-4
1.5.3
→
trunk
View file →
| @@ -20,9 +20,9 @@ | ||
| 20 | 20 | $message = sprintf( |
| 21 | 21 | /* translators: 1: action ID 2: schedule */ |
| 22 | 22 | __( 'Action [%1$s] has an invalid schedule: %2$s', 'action-scheduler' ), |
| 23 | 23 | $action_id, |
| 24 | - var_export( $schedule, true ) | |
| 24 | + var_export( $schedule, true ) // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_var_export | |
| 25 | 25 | ); |
| 26 | 26 | |
| 27 | 27 | return new static( $message ); |
| 28 | 28 | } |
| @@ -29,10 +29,8 @@ | ||
| 29 | 29 | |
| 30 | 30 | /** |
| 31 | 31 | * Create a new exception when the action's args cannot be decoded to an array. |
| 32 | 32 | * |
| 33 | - * @author Jeremy Pry | |
| 34 | - * | |
| 35 | 33 | * @param string $action_id The action ID with bad args. |
| 36 | 34 | * @param mixed $args Passed arguments. |
| 37 | 35 | * @return static |
| 38 | 36 | */ |
| @@ -40,9 +38,9 @@ | ||
| 40 | 38 | $message = sprintf( |
| 41 | 39 | /* translators: 1: action ID 2: arguments */ |
| 42 | 40 | __( 'Action [%1$s] has invalid arguments. It cannot be JSON decoded to an array. $args = %2$s', 'action-scheduler' ), |
| 43 | 41 | $action_id, |
| 44 | - var_export( $args, true ) | |
| 42 | + var_export( $args, true ) // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_var_export | |
| 45 | 43 | ); |
| 46 | 44 | |
| 47 | 45 | return new static( $message ); |
| 48 | 46 | } |