@@ -69,8 +69,7 @@ function app_timezone(): string
6969 * cache()->save('foo', 'bar');
7070 * $foo = cache('bar');
7171 *
72- * @return array|bool|CacheInterface|float|int|object|string|null
73- * @phpstan-return ($key is null ? CacheInterface : array|bool|float|int|object|string|null)
72+ * @return ($key is null ? CacheInterface : mixed)
7473 */
7574 function cache (?string $ key = null )
7675 {
@@ -201,8 +200,7 @@ function command(string $command)
201200 *
202201 * @param class-string<ConfigTemplate>|string $name
203202 *
204- * @return ConfigTemplate|null
205- * @phpstan-return ($name is class-string<ConfigTemplate> ? ConfigTemplate : object|null)
203+ * @return ($name is class-string<ConfigTemplate> ? ConfigTemplate : object|null)
206204 */
207205 function config (string $ name , bool $ getShared = true )
208206 {
@@ -404,11 +402,11 @@ function env(string $key, $default = null)
404402 * If $data is an array, then it loops over it, escaping each
405403 * 'value' of the key/value pairs.
406404 *
407- * @param array|string $data
408- * @phpstan- param 'html '|'js '|'css '|'url '|'attr '|'raw ' $context
409- * @param string|null $encoding Current encoding for escaping.
410- * If not UTF-8, we convert strings from this encoding
411- * pre-escaping and back to this encoding post-escaping.
405+ * @param array|string $data
406+ * @param 'attr '|'css '|'html '|'js '|'raw '|'url ' $context
407+ * @param string|null $encoding Current encoding for escaping.
408+ * If not UTF-8, we convert strings from this encoding
409+ * pre-escaping and back to this encoding post-escaping.
412410 *
413411 * @return array|string
414412 *
@@ -796,8 +794,7 @@ function log_message(string $level, string $message, array $context = []): void
796794 *
797795 * @param class-string<ModelTemplate>|string $name
798796 *
799- * @return ModelTemplate|null
800- * @phpstan-return ($name is class-string<ModelTemplate> ? ModelTemplate : object|null)
797+ * @return ($name is class-string<ModelTemplate> ? ModelTemplate : object|null)
801798 */
802799 function model (string $ name , bool $ getShared = true , ?ConnectionInterface &$ conn = null )
803800 {
@@ -810,9 +807,8 @@ function model(string $name, bool $getShared = true, ?ConnectionInterface &$conn
810807 * Provides access to "old input" that was set in the session
811808 * during a redirect()->withInput().
812809 *
813- * @param string|null $default
814- * @param false|string $escape
815- * @phpstan-param false|'attr'|'css'|'html'|'js'|'raw'|'url' $escape
810+ * @param string|null $default
811+ * @param 'attr'|'css'|'html'|'js'|'raw'|'url'|false $escape
816812 *
817813 * @return array|string|null
818814 */
@@ -965,8 +961,7 @@ function route_to(string $method, ...$params)
965961 * session()->set('foo', 'bar');
966962 * $foo = session('bar');
967963 *
968- * @return array|bool|float|int|object|Session|string|null
969- * @phpstan-return ($val is null ? Session : array|bool|float|int|object|string|null)
964+ * @return ($val is null ? Session : mixed)
970965 */
971966 function session (?string $ val = null )
972967 {
@@ -1123,8 +1118,7 @@ function stringify_attributes($attributes, bool $js = false): string
11231118 * @param non-empty-string|null $name
11241119 * @param (callable(): mixed)|null $callable
11251120 *
1126- * @return mixed|Timer
1127- * @phpstan-return ($name is null ? Timer : ($callable is (callable(): mixed) ? mixed : Timer))
1121+ * @return ($name is null ? Timer : ($callable is (callable(): mixed) ? mixed : Timer))
11281122 */
11291123 function timer (?string $ name = null , ?callable $ callable = null )
11301124 {
0 commit comments