@@ -63,7 +63,7 @@ class DOMCaster
63
63
\XML_NAMESPACE_DECL_NODE => 'XML_NAMESPACE_DECL_NODE ' ,
64
64
];
65
65
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
67
67
{
68
68
$ k = Caster::PREFIX_PROTECTED .'code ' ;
69
69
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
82
82
return $ a ;
83
83
}
84
84
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
86
86
{
87
87
$ a += [
88
88
Caster::PREFIX_VIRTUAL .'Core ' => '1.0 ' ,
@@ -92,7 +92,7 @@ public static function castImplementation(\DOMImplementation|\DOM\Implementation
92
92
return $ a ;
93
93
}
94
94
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
96
96
{
97
97
$ a += [
98
98
'nodeName ' => $ dom ->nodeName ,
@@ -109,7 +109,7 @@ public static function castNode(\DOMNode|\DOM\Node $dom, array $a, Stub $stub, b
109
109
'textContent ' => new CutStub ($ dom ->textContent ),
110
110
];
111
111
112
- if ($ dom instanceof \DOMNode || $ dom instanceof \DOM \Element) {
112
+ if ($ dom instanceof \DOMNode || $ dom instanceof \Dom \Element) {
113
113
$ a += [
114
114
'attributes ' => $ dom ->attributes ,
115
115
'namespaceURI ' => $ dom ->namespaceURI ,
@@ -171,7 +171,7 @@ public static function castDocument(\DOMDocument $dom, array $a, Stub $stub, boo
171
171
return $ a ;
172
172
}
173
173
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
175
175
{
176
176
$ a += [
177
177
'doctype ' => $ dom ->doctype ,
@@ -195,7 +195,7 @@ public static function castXMLDocument(\DOM\XMLDocument $dom, array $a, Stub $st
195
195
return $ a ;
196
196
}
197
197
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
199
199
{
200
200
$ a += [
201
201
'doctype ' => $ dom ->doctype ,
@@ -212,7 +212,7 @@ public static function castHTMLDocument(\DOM\HTMLDocument $dom, array $a, Stub $
212
212
return $ a ;
213
213
}
214
214
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
216
216
{
217
217
$ a += [
218
218
'data ' => $ dom ->data ,
@@ -222,7 +222,7 @@ public static function castCharacterData(\DOMCharacterData|\DOM\CharacterData $d
222
222
return $ a ;
223
223
}
224
224
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
226
226
{
227
227
$ a += [
228
228
'name ' => $ dom ->name ,
@@ -240,7 +240,7 @@ public static function castAttr(\DOMAttr|\DOM\Attr $dom, array $a, Stub $stub, b
240
240
return $ a ;
241
241
}
242
242
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
244
244
{
245
245
$ a += [
246
246
'tagName ' => $ dom ->tagName ,
@@ -255,7 +255,7 @@ public static function castElement(\DOMElement|\DOM\Element $dom, array $a, Stub
255
255
return $ a ;
256
256
}
257
257
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
259
259
{
260
260
$ a += [
261
261
'wholeText ' => $ dom ->wholeText ,
@@ -264,7 +264,7 @@ public static function castText(\DOMText|\DOM\Text $dom, array $a, Stub $stub, b
264
264
return $ a ;
265
265
}
266
266
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
268
268
{
269
269
$ a += [
270
270
'name ' => $ dom ->name ,
@@ -278,7 +278,7 @@ public static function castDocumentType(\DOMDocumentType|\DOM\DocumentType $dom,
278
278
return $ a ;
279
279
}
280
280
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
282
282
{
283
283
$ a += [
284
284
'publicId ' => $ dom ->publicId ,
@@ -288,7 +288,7 @@ public static function castNotation(\DOMNotation|\DOM\Notation $dom, array $a, S
288
288
return $ a ;
289
289
}
290
290
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
292
292
{
293
293
$ a += [
294
294
'publicId ' => $ dom ->publicId ,
@@ -302,7 +302,7 @@ public static function castEntity(\DOMEntity|\DOM\Entity $dom, array $a, Stub $s
302
302
return $ a ;
303
303
}
304
304
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
306
306
{
307
307
$ a += [
308
308
'target ' => $ dom ->target ,
@@ -312,7 +312,7 @@ public static function castProcessingInstruction(\DOMProcessingInstruction|\DOM\
312
312
return $ a ;
313
313
}
314
314
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
316
316
{
317
317
$ a += [
318
318
'document ' => $ dom ->document ,
0 commit comments