Skip to content

Commit e8be406

Browse files
milousdg
authored andcommitted
Validator: changed typehint to allow call isFilled() (#157)
1 parent d1eb1b2 commit e8be406

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Forms/Validator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public static function validateStatic(IControl $control, bool $arg): bool
123123
/**
124124
* Is control filled?
125125
*/
126-
public static function validateFilled(IControl $control): bool
126+
public static function validateFilled(Controls\BaseControl $control): bool
127127
{
128128
return $control->isFilled();
129129
}
@@ -132,7 +132,7 @@ public static function validateFilled(IControl $control): bool
132132
/**
133133
* Is control not filled?
134134
*/
135-
public static function validateBlank(IControl $control): bool
135+
public static function validateBlank(Controls\BaseControl $control): bool
136136
{
137137
return !$control->isFilled();
138138
}

0 commit comments

Comments
 (0)