From 71d2d61c4efee555183b92e25d73a6baa0d61f18 Mon Sep 17 00:00:00 2001 From: Pierre Goiffon Date: Thu, 3 Jun 2021 08:59:08 +0200 Subject: [PATCH] :bulb: Fix phpdoc for \MenuBlock::GetEnumAllowedActions --- application/displayblock.class.inc.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/application/displayblock.class.inc.php b/application/displayblock.class.inc.php index c8733e90d..3eb3e84ca 100644 --- a/application/displayblock.class.inc.php +++ b/application/displayblock.class.inc.php @@ -2315,19 +2315,21 @@ class MenuBlock extends DisplayBlock /** * If an extension doesn't return an array as expected : * - calls IssueLog:Warning + * - if is dev env, then throw CoreUnexpectedValue exception * * @param \DBObjectSet $oSet * @param callable $callback EnumAllowedActions returns an array, we will call this anonymous function on each of its value * with two parameters : label (array index), data (array value) * - * @throws \Exception + * @throws \CoreUnexpectedValue * * @uses \MetaModel::EnumPlugins() * @uses \iApplicationUIExtension::EnumAllowedActions() + * @uses \utils::IsDevelopmentEnvironment() * * @since 3.0.0 */ - private function GetEnumAllowedActions(DBObjectSet $oSet, callable $callback) + private function GetEnumAllowedActions(DBObjectSet $oSet, callable $callback): void { $aInvalidExtensions = [];