Skip to content

Commit 17129ec

Browse files
authored
[Turbo] Fix checking "topics" option in Broadcaster
Mercure Broadcaster class was checking for the "topic" option, which is incorrect. This fixes that by checking for "topics" option instead.
1 parent 88d9a0f commit 17129ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Turbo/src/Bridge/Mercure/Broadcaster.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function broadcast(object $entity, string $action, array $options): void
7070
throw new \InvalidArgumentException(sprintf('Cannot broadcast entity of class "%s" as option "rendered_action" is missing.', $entityClass));
7171
}
7272

73-
if (!isset($options['topic']) && !isset($options['id'])) {
73+
if (!isset($options['topics']) && !isset($options['id'])) {
7474
throw new \InvalidArgumentException(sprintf('Cannot broadcast entity of class "%s": either option "topics" or "id" is missing, or the PropertyAccess component is not installed. Try running "composer require property-access".', $entityClass));
7575
}
7676

0 commit comments

Comments
 (0)