Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion admin/rules/date.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion admin/rules/emaillist.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 === '')
Expand Down
2 changes: 1 addition & 1 deletion admin/rules/geodbpath.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 === '')
Expand Down
2 changes: 1 addition & 1 deletion admin/rules/htaccesspath.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 === '')
Expand Down
2 changes: 1 addition & 1 deletion admin/rules/iprange.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion admin/rules/iprangeblock.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down
Loading