diff --git a/src/Psalm/Internal/PropertyMap.php b/src/Psalm/Internal/PropertyMap.php
index <HASH>..<HASH> 100644
--- a/src/Psalm/Internal/PropertyMap.php
+++ b/src/Psalm/Internal/PropertyMap.php
@@ -327,7 +327,7 @@ return [
         'previousSibling' => 'DOMNode|null',
         'nextSibling' => 'DOMNode|null',
         'attributes' => 'null',
-        'ownerDocument' => 'DOMDocument',
+        'ownerDocument' => 'DOMDocument|null',
         'namespaceURI' => 'string|null',
         'prefix' => 'string',
         'localName' => 'string',
Fix #<I> - use correct property type for ownerDocument