Skip to content

Commit d53c308

Browse files
committed
Removing usage of "key" which may not be set
1 parent cc414dc commit d53c308

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LiveComponent/src/DependencyInjection/Compiler/ComponentDefaultActionPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function process(ContainerBuilder $container): void
3333
$defaultAction = trim($component[0]['default_action'] ?? '__invoke', '()');
3434

3535
if (!method_exists($class, $defaultAction)) {
36-
throw new \LogicException(sprintf('Live component "%s" (%s) requires the default action method "%s".%s', $class, $component[0]['key'], $defaultAction, '__invoke' === $defaultAction ? ' Either add this method or use the DefaultActionTrait' : ''));
36+
throw new \LogicException(sprintf('Live component "%s" requires the default action method "%s".%s', $class, $defaultAction, '__invoke' === $defaultAction ? ' Either add this method or use the DefaultActionTrait' : ''));
3737
}
3838
}
3939
}

0 commit comments

Comments
 (0)