From 0ecdc275442020b5cfd0de71c89b9dda5e20df6d Mon Sep 17 00:00:00 2001 From: peexl-dev Date: Mon, 28 Jan 2019 17:18:52 +0200 Subject: [PATCH 1/2] Update AbstractItem.php PHP 7.3 fixed Notice compact() --- models/rbacDB/AbstractItem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/rbacDB/AbstractItem.php b/models/rbacDB/AbstractItem.php index fae8ae59..170005ba 100644 --- a/models/rbacDB/AbstractItem.php +++ b/models/rbacDB/AbstractItem.php @@ -265,7 +265,7 @@ public static function beforeAddChildren($parentName, $childrenNames, $throwExce $event->trigger(get_called_class(), self::EVENT_BEFORE_ADD_CHILDREN, $event); } - public static function beforeRemoveChildren($parentName, $childrenNames) + public static function beforeRemoveChildren($parentName, $childrenNames, $throwException = false) { $event = new AbstractItemEvent(compact('parentName', 'childrenNames', 'throwException')); $event->trigger(get_called_class(), self::EVENT_BEFORE_REMOVE_CHILDREN, $event); From 06c46948afb0143da526dd7a2a34349f48398a16 Mon Sep 17 00:00:00 2001 From: Andrei Carpatiuc Date: Mon, 28 Jan 2019 17:39:50 +0200 Subject: [PATCH 2/2] Update AbstractItem.php PHP 7.3 fixed Notice compact() --- models/rbacDB/AbstractItem.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/models/rbacDB/AbstractItem.php b/models/rbacDB/AbstractItem.php index 170005ba..55127f09 100644 --- a/models/rbacDB/AbstractItem.php +++ b/models/rbacDB/AbstractItem.php @@ -265,6 +265,11 @@ public static function beforeAddChildren($parentName, $childrenNames, $throwExce $event->trigger(get_called_class(), self::EVENT_BEFORE_ADD_CHILDREN, $event); } + /** + * @param $parentName + * @param $childrenNames + * @param bool $throwException + */ public static function beforeRemoveChildren($parentName, $childrenNames, $throwException = false) { $event = new AbstractItemEvent(compact('parentName', 'childrenNames', 'throwException'));