Skip to content

Commit 157af2d

Browse files
committed
Merge 3.4
2 parents c8db7ae + f8dae8e commit 157af2d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,12 @@ Notes:
236236

237237
* [0d5f35683](https://github.com/api-platform/core/commit/0d5f356839eb6aa9f536044abe4affa736553e76) feat(laravel): laravel component (#5882)
238238

239+
## v3.4.10
240+
241+
### Bug fixes
242+
243+
* [2ee5eb496](https://github.com/api-platform/core/commit/2ee5eb4967f507d04ae07280914bea3c712d8cad) fix(symfony): mercure exception formatting by calling array_keys() (#6879)
244+
239245
## v3.4.9
240246

241247
### Bug fixes

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('", "', 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)