File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -52,38 +52,38 @@ final public function __set($name, $value)
5252 }
5353
5454 /**
55- * @param string $offset
55+ * @param mixed $offset
5656 *
5757 * @return bool
5858 */
59- final public function offsetExists ($ offset ): bool
59+ final public function offsetExists (mixed $ offset ): bool
6060 {
6161 return isset ($ this ->$ offset );
6262 }
6363
6464 /**
65- * @param string $offset
65+ * @param mixed $offset
6666 *
6767 * @return mixed
6868 */
69- final public function offsetGet ($ offset ): mixed
69+ final public function offsetGet (mixed $ offset ): mixed
7070 {
7171 return $ this ->$ offset ;
7272 }
7373
7474 /**
75- * @param string $offset
75+ * @param mixed $offset
7676 * @param mixed $value
7777 */
78- final public function offsetSet ($ offset , $ value ): void
78+ final public function offsetSet (mixed $ offset , mixed $ value ): void
7979 {
8080 $ this ->$ offset = $ value ;
8181 }
8282
8383 /**
84- * @param string $offset
84+ * @param mixed $offset
8585 */
86- final public function offsetUnset ($ offset ): void
86+ final public function offsetUnset (mixed $ offset ): void
8787 {
8888 unset($ this ->$ offset );
8989 }
You can’t perform that action at this time.
0 commit comments