File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -49,10 +49,8 @@ public function offsetExists(mixed $key): bool
49
49
50
50
/**
51
51
* {@inheritdoc}
52
- *
53
- * @return mixed
54
52
*/
55
- public function offsetGet (mixed $ key )
53
+ public function offsetGet (mixed $ key ): mixed
56
54
{
57
55
if (!isset ($ this ->indices [$ key ])) {
58
56
throw new OutOfBoundsException (sprintf ('The index "%s" does not exist. ' , $ key ));
@@ -63,10 +61,8 @@ public function offsetGet(mixed $key)
63
61
64
62
/**
65
63
* {@inheritdoc}
66
- *
67
- * @return void
68
64
*/
69
- public function offsetSet (mixed $ key , mixed $ value )
65
+ public function offsetSet (mixed $ key , mixed $ value ): void
70
66
{
71
67
if (false !== ($ keyToRemove = array_search ($ this ->cursor , $ this ->indices ))) {
72
68
unset($ this ->indices [$ keyToRemove ]);
@@ -80,10 +76,8 @@ public function offsetSet(mixed $key, mixed $value)
80
76
81
77
/**
82
78
* {@inheritdoc}
83
- *
84
- * @return void
85
79
*/
86
- public function offsetUnset (mixed $ key )
80
+ public function offsetUnset (mixed $ key ): void
87
81
{
88
82
if (isset ($ this ->indices [$ key ])) {
89
83
$ this ->values [$ this ->indices [$ key ]] = null ;
You can’t perform that action at this time.
0 commit comments