Skip to content

Commit 84b242a

Browse files
committed
docs: add @phpstan-return
1 parent dd16833 commit 84b242a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

system/Common.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -934,6 +934,7 @@ function route_to(string $method, ...$params)
934934
* @param string $val
935935
*
936936
* @return array|bool|float|int|object|Session|string|null
937+
* @phpstan-return ($val is null ? Session : array|bool|float|int|object|string|null)
937938
*/
938939
function session(?string $val = null)
939940
{

0 commit comments

Comments
 (0)