File tree Expand file tree Collapse file tree 2 files changed +18
-18
lines changed
Expand file tree Collapse file tree 2 files changed +18
-18
lines changed Original file line number Diff line number Diff line change 2525 }
2626 ],
2727 "require" : {
28- "php" : " ^7.4|^8.0 " ,
29- "illuminate/contracts" : " ^8.64 " ,
30- "symfony/yaml" : " ^5 .3" ,
28+ "php" : " ^8.2 " ,
29+ "illuminate/contracts" : " ^10.14.1 " ,
30+ "symfony/yaml" : " ^v6 .3" ,
3131 "justinrainbow/json-schema" : " ^5.2"
3232 },
3333 "require-dev" : {
34- "phpunit/phpunit" : " ^9.5 " ,
35- "squizlabs/php_codesniffer" : " ^3.6 "
34+ "phpunit/phpunit" : " ^9.6.8 " ,
35+ "squizlabs/php_codesniffer" : " ^3.7.2 "
3636 },
3737 "autoload" : {
3838 "psr-4" : {
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
56- *
55+ * @param mixed $offset
5756 * @return bool
5857 */
59- final public function offsetExists ($ offset )
58+ final public function offsetExists (mixed $ offset ): bool
6059 {
6160 return isset ($ this ->$ offset );
6261 }
6362
6463 /**
65- * @param string $offset
66- *
64+ * @param mixed $offset
6765 * @return mixed
6866 */
69- final public function offsetGet ($ offset )
67+ final public function offsetGet (mixed $ offset ): mixed
7068 {
7169 return $ this ->$ offset ;
7270 }
7371
7472 /**
75- * @param string $offset
76- * @param mixed $value
73+ * @param mixed $offset
74+ * @param mixed $value
75+ * @return void
7776 */
78- final public function offsetSet ($ offset , $ value )
77+ final public function offsetSet (mixed $ offset , mixed $ value ): void
7978 {
8079 $ this ->$ offset = $ value ;
8180 }
8281
8382 /**
84- * @param string $offset
83+ * @param mixed $offset
84+ * @return void
8585 */
86- final public function offsetUnset ($ offset )
86+ final public function offsetUnset (mixed $ offset ): void
8787 {
8888 unset($ this ->$ offset );
8989 }
@@ -201,9 +201,9 @@ public function toYaml(
201201 * in order to be able to export empty objects correctly, so they
202202 * won't be treated as empty arrays.
203203 *
204- * @return array|stdClass
204+ * @return mixed
205205 */
206- public function jsonSerialize ()
206+ public function jsonSerialize (): mixed
207207 {
208208 $ properties = $ this ->toArray ();
209209 return empty ($ properties ) ? new stdClass () : $ properties ;
You can’t perform that action at this time.
0 commit comments