``` 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. If type is not FuncCall/Return_/Variable/Echo_ it must reset the last_doc to null to fix this issue.
Activity
sirreal commentedon Oct 7, 2026
This is very similar to #277.