Cancel event not working

I'm working in PHP. deleting an event through ->delete("events/trigger/{$transactionId}")['data'] directly works, but using ->cancelEvent($transactionId) results in an error. From what I can see, since DELETE returns 204 with an empty response body, request() returns false. cancelEvent() then tries to create a trigger with false as first argument instead of an array, resulting in an error. Is there something I'm doing wrong? Or should I just stick to using the delete() function directly?
Was this page helpful?