the cancelEvent function in ManagesTriggers results in an error. In its body, delete returns a boolean, as the response body of the delete request is empty. When this boolean value $response is used to create a Trigger object, an error is thrown, since Trigger expects an array, not a boolean.
the
cancelEvent
function inManagesTriggers
results in an error. In its body,delete
returns a boolean, as the response body of the delete request is empty. When this boolean value$response
is used to create aTrigger object
, an error is thrown, sinceTrigger
expects an array, not a boolean.