[LiveComponent] Fix BC break when using `PropertyTypeExtractorInterface::getType()` on a `#[LiveProp]` property `x` when getter `getX` exists

by @Kocal

Some issues have been detected in this pull request

0
Coding Standard

0
Common Typos

0
File Permissions

0
Merge Commits

Issues that can be fixed by applying a patch

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

0
Usage of void in test files

0
Use ::class whenever possible