[TwigComponent]: Add the ability to spread attributes from the `...` attribute

by @LexAgone

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/2923/5f516ee33bf0e61020413f84715e38b60494eef9/exception_messages.diff | patch -p0
diff -ru src/TwigComponent/src/ComponentFactory.php src/TwigComponent/src/ComponentFactory.php
--- src/TwigComponent/src/ComponentFactory.php	2025-07-14 10:45:57.119216596 +0000
+++ src/TwigComponent/src/ComponentFactory.php	2025-07-14 10:45:58.768219658 +0000
@@ -161,7 +161,7 @@
             } elseif ($refParameter->isDefaultValueAvailable()) {
                 $parameters[] = $refParameter->getDefaultValue();
             } else {
-                throw new \LogicException(\sprintf('%s has a required $%s parameter. Make sure to pass it or give it a default value.', $component::class.'::mount()', $name));
+                throw new \LogicException(\sprintf('"%s" has a required $%s parameter. Make sure to pass it or give it a default value.', $component::class.'::mount()', $name));
             }
         }
 

0
Usage of void in test files

0
Use ::class whenever possible