Add type annotations to fix Intelephense type checking errors

This commit is contained in:
Alexander Schmidt
2026-03-26 11:03:15 +01:00
parent c8df4df881
commit 4549a05b6d
2 changed files with 2 additions and 0 deletions

View File

@@ -38,6 +38,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
if ($proofExpiry > 0 && time() > $proofExpiry) {
unset($proofs[$code]);
[$fp, $allProofs] = read_json_locked($dbFile);
/** @var array<string, mixed> $allProofs */
if (isset($allProofs[$code])) {
unset($allProofs[$code]);
write_json_locked($fp, $allProofs);