Updated trigger_error to Exceptions, fixed bug in Plugin task deletion

This commit is contained in:
Shoghi Cervantes
2014-05-26 12:22:28 +02:00
parent ffa3e8a0aa
commit 160c633c08
15 changed files with 127 additions and 83 deletions

View File

@ -40,12 +40,12 @@ class PermissionAttachmentInfo{
* @param string $permission
* @param PermissionAttachment $attachment
* @param bool $value
*
* @throws \Exception
*/
public function __construct(Permissible $permissible, $permission, $attachment, $value){
if($permission === null){
trigger_error("Permission may not be null", E_USER_WARNING);
return;
throw new \Exception("Permission may not be null");
}
$this->permissible = $permissible;