File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ public function getIterator(): Traversable
64
64
/**
65
65
* @param TKey $offset
66
66
*/
67
- public function offsetExists ($ offset ): bool
67
+ public function offsetExists (mixed $ offset ): bool
68
68
{
69
69
return array_key_exists ($ offset , $ this ->toArray ());
70
70
}
@@ -74,7 +74,7 @@ public function offsetExists($offset): bool
74
74
*
75
75
* @return TValue
76
76
*/
77
- public function offsetGet ($ offset )
77
+ public function offsetGet (mixed $ offset ): mixed
78
78
{
79
79
$ serialized = $ this ->toArray ();
80
80
if (!array_key_exists ($ offset , $ serialized )) {
@@ -88,15 +88,15 @@ public function offsetGet($offset)
88
88
* @param TKey $offset
89
89
* @param TValue $value
90
90
*/
91
- final public function offsetSet ($ offset , $ value ): void
91
+ final public function offsetSet (mixed $ offset , mixed $ value ): void
92
92
{
93
93
throw new BadMethodCallException (sprintf ('%s is immutable ' , static ::class));
94
94
}
95
95
96
96
/**
97
97
* @param TKey $offset
98
98
*/
99
- final public function offsetUnset ($ offset ): void
99
+ final public function offsetUnset (mixed $ offset ): void
100
100
{
101
101
throw new BadMethodCallException (sprintf ('%s is immutable ' , static ::class));
102
102
}
You can’t perform that action at this time.
0 commit comments