phpstan again

This commit is contained in:
Hemachandar
2026-03-24 20:30:17 +05:30
parent 534f879e5a
commit 9d22d1313e
+2 -2
View File
@@ -383,12 +383,12 @@ function router(Http $utopia, Database $dbForPlatform, callable $getProjectDB, S
// isExecutionAllowed remains false
}
/** @var \Appwrite\Utopia\Database\Documents\User | null */
$associatedUser = null;
$userExists = false;
$userId = $payload['userId'] ?? '';
if (!empty($userId)) {
/** @var \Appwrite\Utopia\Database\Documents\User $associatedUser */
$associatedUser = $authorization->skip(fn () => $dbForProject->getDocument('users', $userId));
if (!$associatedUser->isEmpty() && $associatedUser->getAttribute('status', false)) {
$userExists = true;