Skip to content

Commit 227f256

Browse files
committed
fix: ensure session token is always string
1 parent b568cd7 commit 227f256

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)