Skip to content

Commit 2ee5eb4

Browse files
soyukanathan-d-h
andauthored
fix(symfony): mercure exception formatting by calling array_keys() (#6879)
Co-authored-by: Nathan den Haan <[email protected]>
1 parent 535bbf5 commit 2ee5eb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Doctrine/EventListener/PublishMercureUpdatesListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ private function storeObjectToPublish(object $object, string $property): void
191191

192192
foreach ($options as $key => $value) {
193193
if (!isset(self::ALLOWED_KEYS[$key])) {
194-
throw new InvalidArgumentException(\sprintf('The option "%s" set in the "mercure" attribute of the "%s" resource does not exist. Existing options: "%s"', $key, $resourceClass, implode('", "', self::ALLOWED_KEYS)));
194+
throw new InvalidArgumentException(\sprintf('The option "%s" set in the "mercure" attribute of the "%s" resource does not exist. Existing options: "%s"', $key, $resourceClass, implode('", "', array_keys(self::ALLOWED_KEYS))));
195195
}
196196
}
197197

0 commit comments

Comments
 (0)