16
16
/**
17
17
* @author Bernhard Schussek <[email protected] >
18
18
*
19
- * @implements \ArrayAccess<string, FormView>
20
- * @implements \IteratorAggregate<string, FormView>
19
+ * @implements \ArrayAccess<int| string, FormView>
20
+ * @implements \IteratorAggregate<int| string, FormView>
21
21
*/
22
22
class FormView implements \ArrayAccess, \IteratorAggregate, \Countable
23
23
{
@@ -37,7 +37,7 @@ class FormView implements \ArrayAccess, \IteratorAggregate, \Countable
37
37
/**
38
38
* The child views.
39
39
*
40
- * @var array<string, FormView>
40
+ * @var array<int| string, FormView>
41
41
*/
42
42
public $ children = [];
43
43
@@ -107,7 +107,7 @@ public function setMethodRendered()
107
107
/**
108
108
* Returns a child by name (implements \ArrayAccess).
109
109
*
110
- * @param string $name The child name
110
+ * @param int| string $name The child name
111
111
*
112
112
* @return self
113
113
*/
@@ -120,7 +120,7 @@ public function offsetGet($name)
120
120
/**
121
121
* Returns whether the given child exists (implements \ArrayAccess).
122
122
*
123
- * @param string $name The child name
123
+ * @param int| string $name The child name
124
124
*
125
125
* @return bool
126
126
*/
@@ -146,7 +146,7 @@ public function offsetSet($name, $value)
146
146
/**
147
147
* Removes a child (implements \ArrayAccess).
148
148
*
149
- * @param string $name The child name
149
+ * @param int| string $name The child name
150
150
*
151
151
* @return void
152
152
*/
@@ -159,7 +159,7 @@ public function offsetUnset($name)
159
159
/**
160
160
* Returns an iterator to iterate over children (implements \IteratorAggregate).
161
161
*
162
- * @return \ArrayIterator<string, FormView>
162
+ * @return \ArrayIterator<int| string, FormView>
163
163
*/
164
164
#[\ReturnTypeWillChange]
165
165
public function getIterator ()
0 commit comments