Fix various phpstan issues.

This commit is contained in:
James Cole
2025-09-07 10:59:07 +02:00
parent 75dfdcc220
commit 39cf0533d9
15 changed files with 44 additions and 58 deletions

View File

@@ -412,7 +412,7 @@ class ProfileController extends Controller
// found user.which email address to return to?
$set = app('preferences')->beginsWith($user, 'previous_email_');
/** @var string $match */
/** @var string|null $match */
$match = null;
foreach ($set as $entry) {
$hashed = hash('sha256', sprintf('%s%s', (string) config('app.key'), $entry->data));