fix: phpstan level=6
This commit is contained in:
parent
acbf2c847d
commit
48269bd424
41 changed files with 324 additions and 347 deletions
|
|
@ -6,16 +6,16 @@ use ctiso\Validator\Rule\AbstractRule,
|
|||
|
||||
class Notnull extends AbstractRule
|
||||
{
|
||||
function skipEmpty() {
|
||||
function skipEmpty(): bool {
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getErrorMsg()
|
||||
{
|
||||
public function getErrorMsg(): string
|
||||
{
|
||||
return "Поле не должно быть пустым";
|
||||
}
|
||||
|
||||
public function isValid(Collection $container, $status = null)
|
||||
public function isValid(Collection $container, $status = null): bool
|
||||
{
|
||||
$data = $container->get($this->field);
|
||||
if (is_array($data)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue