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.1.7 " ,
12+ "version" : " v0.2.0 " ,
1313 "minimum-stability" : " stable" ,
1414 "autoload" : {
1515 "classmap" : [
1616 " src/"
1717 ]
1818 },
1919 "requires" : {
20- "php" : " >=7.3 || ^8.0"
20+ "php" : " ^8.0"
2121 },
2222 "require-dev" : {
23- "crodas/phpunit-compat" : " ^1.7 " ,
24- "fpoirotte/php_parsergenerator" : " ^0.2.4 " ,
25- "friendsofphp/php-cs-fixer" : " ^2.18 "
23+ "crodas/phpunit-compat" : " * " ,
24+ "fpoirotte/php_parsergenerator" : " * " ,
25+ "friendsofphp/php-cs-fixer" : " * "
2626 }
2727}
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