Skip to content

Commit aecd6d4

Browse files
committed
Support for PHP 8.2
1 parent f0da3a6 commit aecd6d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Csrf.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ public static function generateSecret()
479479
{
480480
$r = '';
481481
for ($i = 0; $i < 32; ++$i) {
482-
$r .= \chr(mt_rand(0, 255));
482+
$r .= \chr(random_int(0, 255));
483483
}
484484
$r .= time() . microtime();
485485
return sha1($r);
@@ -508,7 +508,7 @@ public static function init()
508508
}
509509
// Initialize our handler
510510
if (static::$rewrite) {
511-
ob_start(['self', 'obHandler']);
511+
ob_start([self::class, 'obHandler']);
512512
}
513513
// Perform check
514514
if (!static::$defer) {

0 commit comments

Comments
 (0)