diff --git a/admin/rules/date.php b/admin/rules/date.php index 1c196f8..fdf7d46 100644 --- a/admin/rules/date.php +++ b/admin/rules/date.php @@ -13,7 +13,7 @@ class JFormRuleDate extends FormRule { - public function test(SimpleXMLElement $element, $value, $group = null, Registry $input = null, Form $form = null) + public function test(SimpleXMLElement $element, $value, $group = null, ?Registry $input = null, ?Form $form = null) { if ($value === '' || $value === null) { diff --git a/admin/rules/emaillist.php b/admin/rules/emaillist.php index f1d7aed..62923ec 100644 --- a/admin/rules/emaillist.php +++ b/admin/rules/emaillist.php @@ -19,7 +19,7 @@ */ class JFormRuleEmaillist extends FormRule { - public function test(SimpleXMLElement $element, $value, $group = null, Registry $input = null, Form $form = null) + public function test(SimpleXMLElement $element, $value, $group = null, ?Registry $input = null, ?Form $form = null) { $value = trim((string) $value); if ($value === '') diff --git a/admin/rules/geodbpath.php b/admin/rules/geodbpath.php index f8d015d..5acfc25 100644 --- a/admin/rules/geodbpath.php +++ b/admin/rules/geodbpath.php @@ -14,7 +14,7 @@ class JFormRuleGeodbpath extends FormRule { - public function test(SimpleXMLElement $element, $value, $group = null, Registry $input = null, Form $form = null) + public function test(SimpleXMLElement $element, $value, $group = null, ?Registry $input = null, ?Form $form = null) { $value = (string) $value; if ($value === '') diff --git a/admin/rules/htaccesspath.php b/admin/rules/htaccesspath.php index 93dc188..eb1b1e1 100644 --- a/admin/rules/htaccesspath.php +++ b/admin/rules/htaccesspath.php @@ -14,7 +14,7 @@ class JFormRuleHtaccesspath extends FormRule { - public function test(SimpleXMLElement $element, $value, $group = null, Registry $input = null, Form $form = null) + public function test(SimpleXMLElement $element, $value, $group = null, ?Registry $input = null, ?Form $form = null) { $value = (string) $value; if ($value === '') diff --git a/admin/rules/iprange.php b/admin/rules/iprange.php index 256ea36..6a7524c 100644 --- a/admin/rules/iprange.php +++ b/admin/rules/iprange.php @@ -14,7 +14,7 @@ class JFormRuleIprange extends FormRule { - public function test(SimpleXMLElement $element, $value, $group = null, Registry $input = null, Form $form = null) + public function test(SimpleXMLElement $element, $value, $group = null, ?Registry $input = null, ?Form $form = null) { return IpValidateHelper::validIPRange($value); } diff --git a/admin/rules/iprangeblock.php b/admin/rules/iprangeblock.php index 5942d8c..4803942 100644 --- a/admin/rules/iprangeblock.php +++ b/admin/rules/iprangeblock.php @@ -14,7 +14,7 @@ class JFormRuleIprangeblock extends FormRule { - public function test(SimpleXMLElement $element, $value, $group = null, Registry $input = null, Form $form = null) + public function test(SimpleXMLElement $element, $value, $group = null, ?Registry $input = null, ?Form $form = null) { return (IpValidateHelper::validIPRange($value) && !IpValidateHelper::matchesCurrentIP($value)); }