Skip to content

Commit fd73d4b

Browse files
committed
Fix calling a method on null
1 parent 4c5a341 commit fd73d4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Type/QNameValue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public static function fromParts(
144144
): static {
145145
if ($namespaceURI === null) {
146146
// If we don't have a namespace, we can't have a prefix either
147-
Assert::null($namespacePrefix->getValue(), SchemaViolationException::class);
147+
Assert::null($namespacePrefix, SchemaViolationException::class);
148148
return new static($localName->getValue());
149149
}
150150

0 commit comments

Comments
 (0)