Trouble searching for deleted cases
It's defined in CRM_Core_Task, not CRM_Case_Task, so that reference in buildQuickForm maybe should be CRM_Core_Task::TASK_DELETE. I'm not sure off the top of my head how php handles static inheritance for constants. It might be a difference with your version of php, since it seems to work on dmaster.demo.civicrm.org.