File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 "email" : " crodas@php.net"
1010 }
1111 ],
12- "version" : " v0.2.1 " ,
12+ "version" : " v0.3.0 " ,
1313 "minimum-stability" : " stable" ,
1414 "autoload" : {
1515 "classmap" : [
1616 " src/"
1717 ]
1818 },
1919 "require" : {
20- "php" : " >=7.4 "
20+ "php" : " >=8.0 "
2121 },
2222 "require-dev" : {
2323 "crodas/phpunit-compat" : " *" ,
Original file line number Diff line number Diff line change @@ -62,17 +62,17 @@ public function __toString()
6262 return $ this ->string ;
6363 }
6464
65- public function offsetExists ($ offset )
65+ public function offsetExists (mixed $ offset ): bool
6666 {
6767 return isset ($ this ->metadata [$ offset ]);
6868 }
6969
70- public function offsetGet ($ offset )
70+ public function offsetGet (mixed $ offset ): mixed
7171 {
7272 return $ this ->metadata [$ offset ];
7373 }
7474
75- public function offsetSet ($ offset , $ value )
75+ public function offsetSet (mixed $ offset , mixed $ value ): void
7676 {
7777 if (null === $ offset ) {
7878 if (isset ($ value [0 ])) {
@@ -96,7 +96,7 @@ public function offsetSet($offset, $value)
9696 }
9797 }
9898
99- public function offsetUnset ($ offset )
99+ public function offsetUnset (mixed $ offset ): void
100100 {
101101 unset($ this ->metadata [$ offset ]);
102102 }
You can’t perform that action at this time.
0 commit comments