@@ -61,7 +61,7 @@ class DOMCaster
61
61
XML_NAMESPACE_DECL_NODE => 'XML_NAMESPACE_DECL_NODE ' ,
62
62
];
63
63
64
- public static function castException (\DOMException $ e , array $ a , Stub $ stub , $ isNested )
64
+ public static function castException (\DOMException $ e , array $ a , Stub $ stub , bool $ isNested )
65
65
{
66
66
$ k = Caster::PREFIX_PROTECTED .'code ' ;
67
67
if (isset ($ a [$ k ], self ::$ errorCodes [$ a [$ k ]])) {
@@ -71,7 +71,7 @@ public static function castException(\DOMException $e, array $a, Stub $stub, $is
71
71
return $ a ;
72
72
}
73
73
74
- public static function castLength ($ dom , array $ a , Stub $ stub , $ isNested )
74
+ public static function castLength ($ dom , array $ a , Stub $ stub , bool $ isNested )
75
75
{
76
76
$ a += [
77
77
'length ' => $ dom ->length ,
@@ -80,7 +80,7 @@ public static function castLength($dom, array $a, Stub $stub, $isNested)
80
80
return $ a ;
81
81
}
82
82
83
- public static function castImplementation ($ dom , array $ a , Stub $ stub , $ isNested )
83
+ public static function castImplementation ($ dom , array $ a , Stub $ stub , bool $ isNested )
84
84
{
85
85
$ a += [
86
86
Caster::PREFIX_VIRTUAL .'Core ' => '1.0 ' ,
@@ -90,7 +90,7 @@ public static function castImplementation($dom, array $a, Stub $stub, $isNested)
90
90
return $ a ;
91
91
}
92
92
93
- public static function castNode (\DOMNode $ dom , array $ a , Stub $ stub , $ isNested )
93
+ public static function castNode (\DOMNode $ dom , array $ a , Stub $ stub , bool $ isNested )
94
94
{
95
95
$ a += [
96
96
'nodeName ' => $ dom ->nodeName ,
@@ -114,7 +114,7 @@ public static function castNode(\DOMNode $dom, array $a, Stub $stub, $isNested)
114
114
return $ a ;
115
115
}
116
116
117
- public static function castNameSpaceNode (\DOMNameSpaceNode $ dom , array $ a , Stub $ stub , $ isNested )
117
+ public static function castNameSpaceNode (\DOMNameSpaceNode $ dom , array $ a , Stub $ stub , bool $ isNested )
118
118
{
119
119
$ a += [
120
120
'nodeName ' => $ dom ->nodeName ,
@@ -130,7 +130,7 @@ public static function castNameSpaceNode(\DOMNameSpaceNode $dom, array $a, Stub
130
130
return $ a ;
131
131
}
132
132
133
- public static function castDocument (\DOMDocument $ dom , array $ a , Stub $ stub , $ isNested , $ filter = 0 )
133
+ public static function castDocument (\DOMDocument $ dom , array $ a , Stub $ stub , bool $ isNested , int $ filter = 0 )
134
134
{
135
135
$ a += [
136
136
'doctype ' => $ dom ->doctype ,
@@ -164,7 +164,7 @@ public static function castDocument(\DOMDocument $dom, array $a, Stub $stub, $is
164
164
return $ a ;
165
165
}
166
166
167
- public static function castCharacterData (\DOMCharacterData $ dom , array $ a , Stub $ stub , $ isNested )
167
+ public static function castCharacterData (\DOMCharacterData $ dom , array $ a , Stub $ stub , bool $ isNested )
168
168
{
169
169
$ a += [
170
170
'data ' => $ dom ->data ,
@@ -174,7 +174,7 @@ public static function castCharacterData(\DOMCharacterData $dom, array $a, Stub
174
174
return $ a ;
175
175
}
176
176
177
- public static function castAttr (\DOMAttr $ dom , array $ a , Stub $ stub , $ isNested )
177
+ public static function castAttr (\DOMAttr $ dom , array $ a , Stub $ stub , bool $ isNested )
178
178
{
179
179
$ a += [
180
180
'name ' => $ dom ->name ,
@@ -187,7 +187,7 @@ public static function castAttr(\DOMAttr $dom, array $a, Stub $stub, $isNested)
187
187
return $ a ;
188
188
}
189
189
190
- public static function castElement (\DOMElement $ dom , array $ a , Stub $ stub , $ isNested )
190
+ public static function castElement (\DOMElement $ dom , array $ a , Stub $ stub , bool $ isNested )
191
191
{
192
192
$ a += [
193
193
'tagName ' => $ dom ->tagName ,
@@ -197,7 +197,7 @@ public static function castElement(\DOMElement $dom, array $a, Stub $stub, $isNe
197
197
return $ a ;
198
198
}
199
199
200
- public static function castText (\DOMText $ dom , array $ a , Stub $ stub , $ isNested )
200
+ public static function castText (\DOMText $ dom , array $ a , Stub $ stub , bool $ isNested )
201
201
{
202
202
$ a += [
203
203
'wholeText ' => $ dom ->wholeText ,
@@ -206,7 +206,7 @@ public static function castText(\DOMText $dom, array $a, Stub $stub, $isNested)
206
206
return $ a ;
207
207
}
208
208
209
- public static function castTypeinfo (\DOMTypeinfo $ dom , array $ a , Stub $ stub , $ isNested )
209
+ public static function castTypeinfo (\DOMTypeinfo $ dom , array $ a , Stub $ stub , bool $ isNested )
210
210
{
211
211
$ a += [
212
212
'typeName ' => $ dom ->typeName ,
@@ -216,7 +216,7 @@ public static function castTypeinfo(\DOMTypeinfo $dom, array $a, Stub $stub, $is
216
216
return $ a ;
217
217
}
218
218
219
- public static function castDomError (\DOMDomError $ dom , array $ a , Stub $ stub , $ isNested )
219
+ public static function castDomError (\DOMDomError $ dom , array $ a , Stub $ stub , bool $ isNested )
220
220
{
221
221
$ a += [
222
222
'severity ' => $ dom ->severity ,
@@ -230,7 +230,7 @@ public static function castDomError(\DOMDomError $dom, array $a, Stub $stub, $is
230
230
return $ a ;
231
231
}
232
232
233
- public static function castLocator (\DOMLocator $ dom , array $ a , Stub $ stub , $ isNested )
233
+ public static function castLocator (\DOMLocator $ dom , array $ a , Stub $ stub , bool $ isNested )
234
234
{
235
235
$ a += [
236
236
'lineNumber ' => $ dom ->lineNumber ,
@@ -243,7 +243,7 @@ public static function castLocator(\DOMLocator $dom, array $a, Stub $stub, $isNe
243
243
return $ a ;
244
244
}
245
245
246
- public static function castDocumentType (\DOMDocumentType $ dom , array $ a , Stub $ stub , $ isNested )
246
+ public static function castDocumentType (\DOMDocumentType $ dom , array $ a , Stub $ stub , bool $ isNested )
247
247
{
248
248
$ a += [
249
249
'name ' => $ dom ->name ,
@@ -257,7 +257,7 @@ public static function castDocumentType(\DOMDocumentType $dom, array $a, Stub $s
257
257
return $ a ;
258
258
}
259
259
260
- public static function castNotation (\DOMNotation $ dom , array $ a , Stub $ stub , $ isNested )
260
+ public static function castNotation (\DOMNotation $ dom , array $ a , Stub $ stub , bool $ isNested )
261
261
{
262
262
$ a += [
263
263
'publicId ' => $ dom ->publicId ,
@@ -267,7 +267,7 @@ public static function castNotation(\DOMNotation $dom, array $a, Stub $stub, $is
267
267
return $ a ;
268
268
}
269
269
270
- public static function castEntity (\DOMEntity $ dom , array $ a , Stub $ stub , $ isNested )
270
+ public static function castEntity (\DOMEntity $ dom , array $ a , Stub $ stub , bool $ isNested )
271
271
{
272
272
$ a += [
273
273
'publicId ' => $ dom ->publicId ,
@@ -281,7 +281,7 @@ public static function castEntity(\DOMEntity $dom, array $a, Stub $stub, $isNest
281
281
return $ a ;
282
282
}
283
283
284
- public static function castProcessingInstruction (\DOMProcessingInstruction $ dom , array $ a , Stub $ stub , $ isNested )
284
+ public static function castProcessingInstruction (\DOMProcessingInstruction $ dom , array $ a , Stub $ stub , bool $ isNested )
285
285
{
286
286
$ a += [
287
287
'target ' => $ dom ->target ,
@@ -291,7 +291,7 @@ public static function castProcessingInstruction(\DOMProcessingInstruction $dom,
291
291
return $ a ;
292
292
}
293
293
294
- public static function castXPath (\DOMXPath $ dom , array $ a , Stub $ stub , $ isNested )
294
+ public static function castXPath (\DOMXPath $ dom , array $ a , Stub $ stub , bool $ isNested )
295
295
{
296
296
$ a += [
297
297
'document ' => $ dom ->document ,
0 commit comments