[tests] phpstan version bump

This commit is contained in:
Shish
2024-01-15 13:53:54 +00:00
parent 8439e696dc
commit 7b7ec9c83f
7 changed files with 8 additions and 2 deletions

View File

@@ -659,6 +659,7 @@ function validate_input(array $inputs): array
}
$outputs[$key] = $id;
} elseif (in_array('user_name', $flags)) {
// @phpstan-ignore-next-line - phpstan thinks $value can never be empty?
if (strlen($value) < 1) {
throw new InvalidInput("Username must be at least 1 character");
} elseif (!preg_match('/^[a-zA-Z0-9-_]+$/', $value)) {