Skip to content

Commit

Permalink
Support for PHP 8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
rskrzypczak committed Jun 23, 2023
1 parent f0da3a6 commit aecd6d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Csrf.php
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ public static function generateSecret()
{
$r = '';
for ($i = 0; $i < 32; ++$i) {
$r .= \chr(mt_rand(0, 255));
$r .= \chr(random_int(0, 255));
}
$r .= time() . microtime();
return sha1($r);
Expand Down Expand Up @@ -508,7 +508,7 @@ public static function init()
}
// Initialize our handler
if (static::$rewrite) {
ob_start(['self', 'obHandler']);
ob_start([self::class, 'obHandler']);
}
// Perform check
if (!static::$defer) {
Expand Down

0 comments on commit aecd6d4

Please sign in to comment.