From 24d5d200b8a1631159a888f1b982ba7e3351b623 Mon Sep 17 00:00:00 2001 From: Diogo Cordeiro Date: Wed, 7 Aug 2019 01:31:09 +0100 Subject: [PATCH] [EXTLIB][VALIDATE] Fix some types --- extlib/Validate.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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;