We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b9bf3b commit 4adc017Copy full SHA for 4adc017
1 file changed
system/Common.php
@@ -978,9 +978,8 @@ function route_to(string $method, ...$params)
978
* session()->set('foo', 'bar');
979
* $foo = session('bar');
980
*
981
- * @param string|null $val
982
- *
983
* @return array|bool|float|int|object|Session|string|null
+ * @phpstan-return ($val is null ? Session : array|bool|float|int|object|string|null)
984
*/
985
function session(?string $val = null)
986
{
0 commit comments