@@ -65,6 +65,7 @@ function app_timezone(): string
6565 * $foo = cache('bar');
6666 *
6767 * @return CacheInterface|mixed
68+ * @phpstan-return ($key is null ? CacheInterface : mixed)
6869 */
6970 function cache (?string $ key = null )
7071 {
@@ -198,7 +199,7 @@ function command(string $command)
198199 /**
199200 * More simple way of getting config instances from Factories
200201 *
201- * @return mixed
202+ * @return object|null
202203 */
203204 function config (string $ name , bool $ getShared = true )
204205 {
@@ -361,7 +362,7 @@ function db_connect($db = null, bool $getShared = true)
361362 *
362363 * @param string|null $default
363364 *
364- * @return mixed
365+ * @return bool|string|null
365366 */
366367 function env (string $ key , $ default = null )
367368 {
@@ -999,7 +1000,7 @@ function session(?string $val = null)
9991000 *
10001001 * @param mixed ...$params
10011002 *
1002- * @return mixed
1003+ * @return object
10031004 */
10041005 function service (string $ name , ...$ params )
10051006 {
@@ -1013,7 +1014,7 @@ function service(string $name, ...$params)
10131014 *
10141015 * @param mixed ...$params
10151016 *
1016- * @return mixed
1017+ * @return object|null
10171018 */
10181019 function single_service (string $ name , ...$ params )
10191020 {
@@ -1125,7 +1126,7 @@ function stringify_attributes($attributes, bool $js = false): string
11251126 * returns its return value if any.
11261127 * Otherwise will start or stop the timer intelligently.
11271128 *
1128- * @return mixed| Timer
1129+ * @return Timer
11291130 */
11301131 function timer (?string $ name = null , ?callable $ callable = null )
11311132 {
0 commit comments