We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65f6bc9 commit 5ea84d2Copy full SHA for 5ea84d2
src/Domain/Value/Link.php
@@ -71,7 +71,7 @@ public function __construct(array $values)
71
72
Assert::keyExists($values, 'path');
73
74
- if (null !== $values['path']) {
+ if (null !== $values['path'] && '' !== $values['path']) {
75
$path = TrimmedNonEmptyString::fromString($values['path'], 'The value of key "path" is invalid.')->toString();
76
}
77
tests/Unit/Domain/Value/LinkTest.php
@@ -156,7 +156,6 @@ public function pathKeyMustExist(): void
156
157
158
#[DataProviderExternal(StringProvider::class, 'blank')]
159
- #[DataProviderExternal(StringProvider::class, 'empty')]
160
#[Test]
161
public function pathMustBeValidString(string $value): void
162
{
0 commit comments