Skip to content

Commit 5ea84d2

Browse files
committed
fix
1 parent 65f6bc9 commit 5ea84d2

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/Domain/Value/Link.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function __construct(array $values)
7171

7272
Assert::keyExists($values, 'path');
7373

74-
if (null !== $values['path']) {
74+
if (null !== $values['path'] && '' !== $values['path']) {
7575
$path = TrimmedNonEmptyString::fromString($values['path'], 'The value of key "path" is invalid.')->toString();
7676
}
7777

tests/Unit/Domain/Value/LinkTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ public function pathKeyMustExist(): void
156156
}
157157

158158
#[DataProviderExternal(StringProvider::class, 'blank')]
159-
#[DataProviderExternal(StringProvider::class, 'empty')]
160159
#[Test]
161160
public function pathMustBeValidString(string $value): void
162161
{

0 commit comments

Comments
 (0)