phpstan level 1 errors reduction

This commit is contained in:
marko
2025-11-20 20:02:26 +01:00
parent f28fa7b51b
commit 275b6481cc
40 changed files with 223 additions and 152 deletions

View File

@@ -96,7 +96,7 @@ class ApiKey
* @param string $key the key to request
* @return ApiKey found in the db, null otherwise
*/
public static function loadFromDb(string $key)
public static function loadFromDb(string $key): ?ApiKey
{
if (!self::isWellFormatted($key)) {
return null;