From 9af214ce151c4429bb041d49a1107d67447602a6 Mon Sep 17 00:00:00 2001 From: IanM <16573496+imorland@users.noreply.github.com> Date: Thu, 12 Oct 2023 19:09:23 +0100 Subject: [PATCH] Update framework/core/src/Extend/Conditional.php Co-authored-by: Sami Mazouz --- framework/core/src/Extend/Conditional.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/framework/core/src/Extend/Conditional.php b/framework/core/src/Extend/Conditional.php index 4241cf476e..d0c1d699fe 100644 --- a/framework/core/src/Extend/Conditional.php +++ b/framework/core/src/Extend/Conditional.php @@ -82,9 +82,7 @@ public function extend(Container $container, Extension $extension = null) if ($condition['condition']) { $extenders = $condition['extenders']; - if (is_string($extenders)) { - $extenders = $container->call($extenders); - } elseif (is_callable($extenders)) { + if (is_string($extenders) || is_callable($extenders)) { $extenders = $container->call($extenders); }