Fix type declaration

This commit is contained in:
DariusIII
2023-03-19 02:01:59 +01:00
parent 24abfea495
commit f6729f890e
+1 -1
View File
@@ -400,7 +400,7 @@ class User extends Authenticatable
*
* @throws \Throwable
*/
public static function getRange($start, $offset, $orderBy, string $userName = '', string $email = '', string $host = '', string $role = '', bool $apiRequests = false)
public static function getRange($start, $offset, $orderBy, string $userName = '', ?string $email = '', ?string $host = '', ?string $role = '', bool $apiRequests = false)
{
if ($apiRequests) {
UserRequest::clearApiRequests(false);