Skip to content

Commit 1f8eecd

Browse files
committed
cs + wording exception
1 parent 3931062 commit 1f8eecd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/TwigComponent/src/ComponentFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ private function mount(object $component, array &$data): void
174174
} elseif ($refParameter->isDefaultValueAvailable()) {
175175
$parameters[] = $refParameter->getDefaultValue();
176176
} else {
177-
throw new \LogicException(\sprintf('"%s"::mount() has a required $%s parameter. Make sure this is passed or make give a default value.', $component::class, $name));
177+
throw new \LogicException(\sprintf('%s::mount() has a required $%s parameter. Make sure to pass it or give it a default value.', $component::class, $name));
178178
}
179179
}
180180

src/TwigComponent/tests/Integration/ComponentFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function testMountCanHaveOptionalParameters(): void
8787
public function testExceptionThrownIfRequiredMountParameterIsMissingFromPassedData(): void
8888
{
8989
$this->expectException(\LogicException::class);
90-
$this->expectExceptionMessage('Symfony\UX\TwigComponent\Tests\Fixtures\Component\ComponentC::mount() has a required $propA parameter. Make sure this is passed or make give a default value.');
90+
$this->expectExceptionMessage('Symfony\UX\TwigComponent\Tests\Fixtures\Component\ComponentC::mount() has a required $propA parameter. Make sure to pass it or give it a default value.');
9191

9292
$this->createComponent('component_c');
9393
}

0 commit comments

Comments
 (0)