for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Yiisoft\Form\HtmlOptions;
use Yiisoft\Validator\DataSetInterface;
use Yiisoft\Validator\Result;
use Yiisoft\Validator\RuleInterface;
trait ValidatorAwareTrait
{
private RuleInterface $validator;
public function validate($value, DataSetInterface $dataSet = null, bool $previousRulesErrored = false): Result
return $this->validator->validate($value, $dataSet, $previousRulesErrored);
}