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 da34115 commit 2155a18Copy full SHA for 2155a18
src/XMLSchema/Type/QNameValue.php
@@ -97,7 +97,8 @@ protected function validateValue(string $value): void
97
*/
98
public function getValue(): string
99
{
100
- return $this->getNamespacePrefix() . ':' . $this->getLocalName();
+ $prefix = $this->getNamespacePrefix();
101
+ return ($prefix ? $prefix . ':' : '') . $this->getLocalName();
102
}
103
104
tests/XML/Assert/AnyURITest.php
@@ -49,6 +49,7 @@ public static function provideValidURI(): array
49
'spaces' => [true, 'this is silly'],
50
'empty' => [true, ''],
51
'azure-common' => [true, 'https://sts.windows.net/{tenantid}/'],
52
+ 'one' => [true, '1'],
53
];
54
55
0 commit comments