diff --git a/request/User/UserHistoryRequest.php b/request/User/UserHistoryRequest.php index 7d1fc8f..c5f3ea6 100644 --- a/request/User/UserHistoryRequest.php +++ b/request/User/UserHistoryRequest.php @@ -36,7 +36,7 @@ public function __construct(string $username, $type = '') // "" means empty stri $this->username = $username; if (null !== $type) { - if (!\in_array($type, ['anime', 'manga'])) { + if (!empty($type) && !\in_array($type, ['anime', 'manga'])) { throw new \InvalidArgumentException(sprintf('Type %s is not valid', $type)); }