Skip to content

Commit 7d98b58

Browse files
authored
fix: csrf_token can return null (#56768)
1 parent f09bbe0 commit 7d98b58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Foundation/helpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ function csrf_field(): HtmlString
397397
*
398398
* @throws \RuntimeException
399399
*/
400-
function csrf_token(): string
400+
function csrf_token(): ?string
401401
{
402402
$session = app('session');
403403

0 commit comments

Comments
 (0)