phpstan level 1 errors reduction
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user