We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
public function cancel_action( $action_id ) { /** @var \wpdb $wpdb */ global $wpdb; $updated = $wpdb->update( $wpdb->actionscheduler_actions, array( 'status' => self::STATUS_CANCELED ), array( 'action_id' => $action_id ), array( '%s' ), array( '%d' ) ); if ( empty( $updated ) ) { /* translators: %s: action ID */ throw new \InvalidArgumentException( sprintf( __( 'Unidentified action %s', 'woocommerce' ), $action_id ) ); } do_action( 'action_scheduler_canceled_action', $action_id ); }
it assigns the /** @var \wpdb $wpdb */ docblock to the do_action( 'action_scheduler_canceled_action', $action_id ); which is completely wrong.
/** @var \wpdb $wpdb */
do_action( 'action_scheduler_canceled_action', $action_id );
If type is not FuncCall/Return_/Variable/Echo_ it must reset the last_doc to null to fix this issue.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
it assigns the
/** @var \wpdb $wpdb */
docblock to thedo_action( 'action_scheduler_canceled_action', $action_id );
which is completely wrong.If type is not FuncCall/Return_/Variable/Echo_ it must reset the last_doc to null to fix this issue.
The text was updated successfully, but these errors were encountered: