Skip to content

Commit 4b29a1f

Browse files
authored
Added type mixed to $value property and added string $className to match HydrationExtensionInterface
1 parent c6e3560 commit 4b29a1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LiveComponent/doc/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ a custom ``Food`` object, a hydration extension might look like this::
700700
return is_subclass_of($className, Food::class);
701701
}
702702

703-
public function hydrate($value)
703+
public function hydrate(mixed $value, string $className): ?object
704704
{
705705
return new Food($value['name'], $value['isCooked']);
706706
}

0 commit comments

Comments
 (0)