Skip to content

Commit

Permalink
Update RedisTrait.php
Browse files Browse the repository at this point in the history
  • Loading branch information
RobiNN1 committed Nov 21, 2023
1 parent 50543a4 commit 1bb5102
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Dashboards/Redis/RedisTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ private function mainDashboard(): string {
if (isset($_POST['submit_import_key'])) {
Helpers::import(
fn (string $key): bool => is_int($this->redis->exists($key)) && $this->redis->exists($key) > 0,
fn (string $key, string $value, int $expire): bool => $this->redis->restore($key, ($expire === -1 ? 0 : $expire), $value, null),
fn (string $key, string $value, int $expire): bool => $this->redis->restore($key, ($expire === -1 ? 0 : $expire), $value, null), // temp fix for phpstan
'application/octet-stream'
);
}
Expand Down

0 comments on commit 1bb5102

Please sign in to comment.