Skip to content

Commit

Permalink
Fix token creation in php 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mrilyew committed Oct 28, 2023
1 parent f57a470 commit 3f1c9cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Web/Models/Entities/APIToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function revoke(): void
$this->delete();
}

function save(): void
function save(?bool $log = false): void
{
if(is_null($this->getRecord()))
$this->stateChanges("secret", bin2hex(openssl_random_pseudo_bytes(36)));
Expand Down

0 comments on commit 3f1c9cd

Please sign in to comment.