Skip to content

Commit 0b915e4

Browse files
committed
[LiveComponent] correctly use $t from TypeHelper::traverse() iteration
1 parent ca9cf90 commit 0b915e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/LiveComponent/src/LiveComponentHydrator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,9 +316,9 @@ public function hydrateValue(mixed $value, LivePropMetadata|LegacyLivePropMetada
316316

317317
$isCollection = false;
318318
foreach (TypeHelper::traverse($type) as $t) {
319-
if ($isCollection = $type instanceof CollectionType) {
319+
if ($t instanceof CollectionType) {
320320
$isCollection = true;
321-
$type = $type->getCollectionValueType();
321+
$type = $t->getCollectionValueType();
322322

323323
break;
324324
}

0 commit comments

Comments
 (0)