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));
}
}