diff --git a/core/themes/engines/twig/twig.engine b/core/themes/engines/twig/twig.engine index a2501e1..b476cc3 100644 --- a/core/themes/engines/twig/twig.engine +++ b/core/themes/engines/twig/twig.engine @@ -167,13 +167,13 @@ function twig_render_var($arg) { * elements. The original renderable array is still available and can be used * to print child elements in their entirety in the twig template. * - * @param array $element + * @param array|object $element * The parent renderable array to exclude the child items. * * @return array * The filtered renderable array. */ -function twig_without(array $element) { +function twig_without($element) { if ($element instanceof ArrayAccess) { $filtered_element = clone $element; }