Skip to content

Commit 13fbe92

Browse files
committed
fix: update exception message
1 parent fabf6cc commit 13fbe92

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Domain/Value/Link.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function __construct(array $values)
7272
Assert::keyExists($values, 'path');
7373

7474
if (null !== $values['path'] && '' !== $values['path']) {
75-
$path = TrimmedNonEmptyString::fromString($values['path'], 'The value of key "path" is invalid.')->toString();
75+
$path = TrimmedNonEmptyString::fromString($values['path'], 'The value of key "path" must be an trimmed non empty string')->toString();
7676
}
7777

7878
$this->path = $path ?? null;

tests/Unit/Domain/Value/LinkTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public function pathMustBeValidString(string $value): void
161161
{
162162
$values = self::faker()->linkResponse(['path' => $value]);
163163

164-
self::expectExceptionMessage('The value of key "path" is invalid.');
164+
self::expectExceptionMessage('The value of key "path" must be an trimmed non empty string');
165165
self::expectException(\InvalidArgumentException::class);
166166

167167
new Link($values);

0 commit comments

Comments
 (0)