Skip to content

Commit

Permalink
Update framework/core/src/Extend/Conditional.php
Browse files Browse the repository at this point in the history
Co-authored-by: Sami Mazouz <sychocouldy@gmail.com>
  • Loading branch information
imorland and SychO9 authored Oct 12, 2023
1 parent 42136f0 commit 9af214c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions framework/core/src/Extend/Conditional.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 9af214c

Please sign in to comment.