Skip to content

Commit 4adc017

Browse files
committed
Restore @phpstan-return [ci skip]
1 parent 8b9bf3b commit 4adc017

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

system/Common.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -978,9 +978,8 @@ function route_to(string $method, ...$params)
978978
* session()->set('foo', 'bar');
979979
* $foo = session('bar');
980980
*
981-
* @param string|null $val
982-
*
983981
* @return array|bool|float|int|object|Session|string|null
982+
* @phpstan-return ($val is null ? Session : array|bool|float|int|object|string|null)
984983
*/
985984
function session(?string $val = null)
986985
{

0 commit comments

Comments
 (0)