Fix domain validator

This commit is contained in:
Jake Barnby 2025-08-27 14:21:22 +12:00
parent 9fc39ddfce
commit 35579bfda1
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

View file

@ -67,8 +67,7 @@ class Get extends Action
Database $dbForPlatform
) {
if ($type === 'rules') {
$validator = new Domain($value);
$validator = new Domain();
if (!$validator->isValid($value)) {
throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, $validator->getDescription());
}