File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ public function offsetUnset($i) : void {
117
117
* @param string|integer $i The key to be accessed, can be a string or integer
118
118
* @return mixed The requested value or null if the key doesn't exist
119
119
*/
120
- public function offsetGet ($ i ) { // return reference so you can set it like an array
120
+ public function offsetGet (mixed $ i ) : mixed { // return reference so you can set it like an array
121
121
return $ this ->children [$ i ] ?? null ;
122
122
}
123
123
@@ -126,7 +126,7 @@ public function offsetGet($i) { // return reference so you can set it like an ar
126
126
*
127
127
* @return tag|text|comment|doctype The child node at the current pointer position
128
128
*/
129
- public function current () {
129
+ public function current () : mixed {
130
130
return $ this ->children [$ this ->pointer ] ?? null ;
131
131
}
132
132
You can’t perform that action at this time.
0 commit comments