Review the proposed patch then download it to apply it manually or execute the following command from the repository root directory:
curl https://fabbot.io/patch/symfony/ux/2922/de302ef36c4f67f1c2e1b378aa31a7b2e41ad5a5/exception_messages.diff | patch -p0
diff -ru src/LiveComponent/src/Metadata/LiveComponentMetadataFactory.php src/LiveComponent/src/Metadata/LiveComponentMetadataFactory.php
--- src/LiveComponent/src/Metadata/LiveComponentMetadataFactory.php 2025-07-15 20:37:36.323352979 +0000
+++ src/LiveComponent/src/Metadata/LiveComponentMetadataFactory.php 2025-07-15 20:37:40.777361202 +0000
@@ -83,7 +83,7 @@
{
$reflectionType = $property->getType();
if ($reflectionType instanceof \ReflectionUnionType || $reflectionType instanceof \ReflectionIntersectionType) {
- throw new \LogicException(\sprintf('Union or intersection types are not supported for LiveProps. You may want to change the type of property %s in %s.', $property->getName(), $property->getDeclaringClass()->getName()));
+ throw new \LogicException(\sprintf('Union or intersection types are not supported for LiveProps. You may want to change the type of property "%s" in "%s".', $property->getName(), $property->getDeclaringClass()->getName()));
}
// BC layer when "symfony/type-info" is not available