Skip to content

Commit c883096

Browse files
committed
Fix filtering out 0 values
1 parent 3c5d7a4 commit c883096

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LiveComponent/src/DependencyInjection/LiveComponentExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function load(array $configs, ContainerBuilder $container): void
8989
AsLiveComponent::class,
9090
function (ChildDefinition $definition, AsLiveComponent $attribute) {
9191
$definition
92-
->addTag('twig.component', array_filter($attribute->serviceConfig()))
92+
->addTag('twig.component', array_filter($attribute->serviceConfig(), static fn ($v) => null !== $v))
9393
->addTag('controller.service_arguments')
9494
;
9595
}

0 commit comments

Comments
 (0)