From: Diogo Cordeiro Date: Wed, 7 Aug 2019 00:31:09 +0000 (+0100) Subject: [EXTLIB][VALIDATE] Fix some types X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=24d5d200b8a1631159a888f1b982ba7e3351b623;p=quix0rs-gnu-social.git [EXTLIB][VALIDATE] Fix some types --- diff --git a/extlib/Validate.php b/extlib/Validate.php index e31d6db62e..c17ccebb45 100644 --- a/extlib/Validate.php +++ b/extlib/Validate.php @@ -508,7 +508,7 @@ class Validate * Validate an email * * @param string $email email to validate - * @param mixed boolean (BC) $check_domain Check or not if the domain exists + * @param mixed bool (BC) $check_domain Check or not if the domain exists * array $options associative array of options * 'check_domain' boolean Check or not if the domain exists * 'use_rfc822' boolean Apply the full RFC822 grammar @@ -528,7 +528,7 @@ class Validate * @access public * @throws Exception */ - public function email(string $email, array $options = null): bool + public function email(string $email, $options = null): bool { $check_domain = false; $use_rfc822 = false; @@ -683,7 +683,7 @@ class Validate * @access public * @throws Exception */ - public function uri(string $url, $options = null): bool + public function uri(string $url, ?array $options = null): bool { $strict = ';/?:@$,'; $domain_check = false;