Skip to content

Commit 2f50eb8

Browse files
committed
CS
1 parent f5bd8d5 commit 2f50eb8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/TwigComponent/src/ComponentAttributes.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function (string $carry, string $key) {
5252
}
5353

5454
if (!\is_scalar($value) && null !== $value) {
55-
throw new \LogicException(sprintf('A "%s" prop was passed when creating the component. No matching "%s" property or mount() argument was found, so we attempted to use this as an HTML attribute. But, the value is not a scalar (it\'s a %s). Did you mean to pass this to your component or is there a typo on its name?', $key, $key, get_debug_type($value)));
55+
throw new \LogicException(sprintf('A "%s" prop was passed when creating the component. No matching "%s" property or mount() argument was found, so we attempted to use this as an HTML attribute. But, the value is not a scalar (it\'s a "%s"). Did you mean to pass this to your component or is there a typo on its name?', $key, $key, get_debug_type($value)));
5656
}
5757

5858
if (null === $value) {
@@ -94,7 +94,7 @@ public function render(string $attribute): ?string
9494
}
9595

9696
if (!\is_string($value)) {
97-
throw new \LogicException(sprintf('Can only get string attributes (%s is a %s).', $attribute, get_debug_type($value)));
97+
throw new \LogicException(sprintf('Can only get string attributes (%s is a "%s").', $attribute, get_debug_type($value)));
9898
}
9999

100100
$this->rendered[$attribute] = true;

0 commit comments

Comments
 (0)