try to fix psalm

Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
Simon L 2024-01-24 12:14:08 +01:00
parent c2bfe1d37d
commit b4a380c1b2
2 changed files with 3 additions and 3 deletions

View file

@ -8,7 +8,7 @@ if (strpos($domain, '.') === false) {
http_response_code(400);
} elseif (strpos($domain, ':') !== false) {
http_response_code(400);
} elseif (!filter_var($domain, FILTER_VALIDATE_DOMAIN, FILTER_FLAG_HOSTNAME)) {
} elseif (!filter_var($domain, FILTER_VALIDATE_DOMAIN, FILTER_FLAG_HOSTNAME) === false) {
http_response_code(400);
} elseif (filter_var($domain, FILTER_VALIDATE_IP)) {
http_response_code(400);