Skip to content

Commit 936dec0

Browse files
committed
Fix exception formatting by calling array_keys()
1 parent f2eec8e commit 936dec0

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
@@ -189,7 +189,7 @@ private function storeObjectToPublish(object $object, string $property): void
189189

190190
foreach ($options as $key => $value) {
191191
if (!isset(self::ALLOWED_KEYS[$key])) {
192-
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))));
192+
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))));
193193
}
194194
}
195195

0 commit comments

Comments
 (0)