Skip to content

Commit 6384a5e

Browse files
Typo in LiveComponentHydrator.php
1 parent 280e95d commit 6384a5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LiveComponent/src/LiveComponentHydrator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ private function dehydrateValue(mixed $value, LivePropMetadata $propMetadata, ob
452452
$collectionClass = $propMetadata->collectionValueType()->getClassName();
453453
foreach ($value as $key => $objectItem) {
454454
if (!$objectItem instanceof $collectionClass) {
455-
throw new \LogicException(\sprintf('The LiveProp "%s" on component "%s" is an array. We determined the array is full of %s objects, but at least on key had a different value of %s', $propMetadata->getName(), $parentObject::class, $collectionClass, get_debug_type($objectItem)));
455+
throw new \LogicException(\sprintf('The LiveProp "%s" on component "%s" is an array. We determined the array is full of %s objects, but at least one key had a different value of %s', $propMetadata->getName(), $parentObject::class, $collectionClass, get_debug_type($objectItem)));
456456
}
457457

458458
$value[$key] = $this->dehydrateObjectValue($objectItem, $collectionClass, $propMetadata->getFormat(), $parentObject);

0 commit comments

Comments
 (0)