@@ -63,7 +63,7 @@ class DOMCaster
6363 \XML_NAMESPACE_DECL_NODE => 'XML_NAMESPACE_DECL_NODE ' ,
6464 ];
6565
66- public static function castException (\DOMException |\DOM \Exception $ e , array $ a , Stub $ stub , bool $ isNested ): array
66+ public static function castException (\DOMException |\Dom \Exception $ e , array $ a , Stub $ stub , bool $ isNested ): array
6767 {
6868 $ k = Caster::PREFIX_PROTECTED .'code ' ;
6969 if (isset ($ a [$ k ], self ::ERROR_CODES [$ a [$ k ]])) {
@@ -82,7 +82,7 @@ public static function castLength($dom, array $a, Stub $stub, bool $isNested): a
8282 return $ a ;
8383 }
8484
85- public static function castImplementation (\DOMImplementation |\DOM \Implementation $ dom , array $ a , Stub $ stub , bool $ isNested ): array
85+ public static function castImplementation (\DOMImplementation |\Dom \Implementation $ dom , array $ a , Stub $ stub , bool $ isNested ): array
8686 {
8787 $ a += [
8888 Caster::PREFIX_VIRTUAL .'Core ' => '1.0 ' ,
@@ -92,7 +92,7 @@ public static function castImplementation(\DOMImplementation|\DOM\Implementation
9292 return $ a ;
9393 }
9494
95- public static function castNode (\DOMNode |\DOM \Node $ dom , array $ a , Stub $ stub , bool $ isNested ): array
95+ public static function castNode (\DOMNode |\Dom \Node $ dom , array $ a , Stub $ stub , bool $ isNested ): array
9696 {
9797 $ a += [
9898 'nodeName ' => $ dom ->nodeName ,
@@ -109,7 +109,7 @@ public static function castNode(\DOMNode|\DOM\Node $dom, array $a, Stub $stub, b
109109 'textContent ' => new CutStub ($ dom ->textContent ),
110110 ];
111111
112- if ($ dom instanceof \DOMNode || $ dom instanceof \DOM \Element) {
112+ if ($ dom instanceof \DOMNode || $ dom instanceof \Dom \Element) {
113113 $ a += [
114114 'attributes ' => $ dom ->attributes ,
115115 'namespaceURI ' => $ dom ->namespaceURI ,
@@ -171,7 +171,7 @@ public static function castDocument(\DOMDocument $dom, array $a, Stub $stub, boo
171171 return $ a ;
172172 }
173173
174- public static function castXMLDocument (\DOM \XMLDocument $ dom , array $ a , Stub $ stub , bool $ isNested , int $ filter = 0 ): array
174+ public static function castXMLDocument (\Dom \XMLDocument $ dom , array $ a , Stub $ stub , bool $ isNested , int $ filter = 0 ): array
175175 {
176176 $ a += [
177177 'doctype ' => $ dom ->doctype ,
@@ -195,7 +195,7 @@ public static function castXMLDocument(\DOM\XMLDocument $dom, array $a, Stub $st
195195 return $ a ;
196196 }
197197
198- public static function castHTMLDocument (\DOM \HTMLDocument $ dom , array $ a , Stub $ stub , bool $ isNested , int $ filter = 0 ): array
198+ public static function castHTMLDocument (\Dom \HTMLDocument $ dom , array $ a , Stub $ stub , bool $ isNested , int $ filter = 0 ): array
199199 {
200200 $ a += [
201201 'doctype ' => $ dom ->doctype ,
@@ -212,7 +212,7 @@ public static function castHTMLDocument(\DOM\HTMLDocument $dom, array $a, Stub $
212212 return $ a ;
213213 }
214214
215- public static function castCharacterData (\DOMCharacterData |\DOM \CharacterData $ dom , array $ a , Stub $ stub , bool $ isNested ): array
215+ public static function castCharacterData (\DOMCharacterData |\Dom \CharacterData $ dom , array $ a , Stub $ stub , bool $ isNested ): array
216216 {
217217 $ a += [
218218 'data ' => $ dom ->data ,
@@ -222,7 +222,7 @@ public static function castCharacterData(\DOMCharacterData|\DOM\CharacterData $d
222222 return $ a ;
223223 }
224224
225- public static function castAttr (\DOMAttr |\DOM \Attr $ dom , array $ a , Stub $ stub , bool $ isNested ): array
225+ public static function castAttr (\DOMAttr |\Dom \Attr $ dom , array $ a , Stub $ stub , bool $ isNested ): array
226226 {
227227 $ a += [
228228 'name ' => $ dom ->name ,
@@ -240,7 +240,7 @@ public static function castAttr(\DOMAttr|\DOM\Attr $dom, array $a, Stub $stub, b
240240 return $ a ;
241241 }
242242
243- public static function castElement (\DOMElement |\DOM \Element $ dom , array $ a , Stub $ stub , bool $ isNested ): array
243+ public static function castElement (\DOMElement |\Dom \Element $ dom , array $ a , Stub $ stub , bool $ isNested ): array
244244 {
245245 $ a += [
246246 'tagName ' => $ dom ->tagName ,
@@ -255,7 +255,7 @@ public static function castElement(\DOMElement|\DOM\Element $dom, array $a, Stub
255255 return $ a ;
256256 }
257257
258- public static function castText (\DOMText |\DOM \Text $ dom , array $ a , Stub $ stub , bool $ isNested ): array
258+ public static function castText (\DOMText |\Dom \Text $ dom , array $ a , Stub $ stub , bool $ isNested ): array
259259 {
260260 $ a += [
261261 'wholeText ' => $ dom ->wholeText ,
@@ -264,7 +264,7 @@ public static function castText(\DOMText|\DOM\Text $dom, array $a, Stub $stub, b
264264 return $ a ;
265265 }
266266
267- public static function castDocumentType (\DOMDocumentType |\DOM \DocumentType $ dom , array $ a , Stub $ stub , bool $ isNested ): array
267+ public static function castDocumentType (\DOMDocumentType |\Dom \DocumentType $ dom , array $ a , Stub $ stub , bool $ isNested ): array
268268 {
269269 $ a += [
270270 'name ' => $ dom ->name ,
@@ -278,7 +278,7 @@ public static function castDocumentType(\DOMDocumentType|\DOM\DocumentType $dom,
278278 return $ a ;
279279 }
280280
281- public static function castNotation (\DOMNotation |\DOM \Notation $ dom , array $ a , Stub $ stub , bool $ isNested ): array
281+ public static function castNotation (\DOMNotation |\Dom \Notation $ dom , array $ a , Stub $ stub , bool $ isNested ): array
282282 {
283283 $ a += [
284284 'publicId ' => $ dom ->publicId ,
@@ -288,7 +288,7 @@ public static function castNotation(\DOMNotation|\DOM\Notation $dom, array $a, S
288288 return $ a ;
289289 }
290290
291- public static function castEntity (\DOMEntity |\DOM \Entity $ dom , array $ a , Stub $ stub , bool $ isNested ): array
291+ public static function castEntity (\DOMEntity |\Dom \Entity $ dom , array $ a , Stub $ stub , bool $ isNested ): array
292292 {
293293 $ a += [
294294 'publicId ' => $ dom ->publicId ,
@@ -302,7 +302,7 @@ public static function castEntity(\DOMEntity|\DOM\Entity $dom, array $a, Stub $s
302302 return $ a ;
303303 }
304304
305- public static function castProcessingInstruction (\DOMProcessingInstruction |\DOM \ProcessingInstruction $ dom , array $ a , Stub $ stub , bool $ isNested ): array
305+ public static function castProcessingInstruction (\DOMProcessingInstruction |\Dom \ProcessingInstruction $ dom , array $ a , Stub $ stub , bool $ isNested ): array
306306 {
307307 $ a += [
308308 'target ' => $ dom ->target ,
@@ -312,7 +312,7 @@ public static function castProcessingInstruction(\DOMProcessingInstruction|\DOM\
312312 return $ a ;
313313 }
314314
315- public static function castXPath (\DOMXPath |\DOM \XPath $ dom , array $ a , Stub $ stub , bool $ isNested ): array
315+ public static function castXPath (\DOMXPath |\Dom \XPath $ dom , array $ a , Stub $ stub , bool $ isNested ): array
316316 {
317317 $ a += [
318318 'document ' => $ dom ->document ,
0 commit comments