chore: Добавлены аннотации к типам

This commit is contained in:
origami11@yandex.ru 2025-10-07 13:23:09 +03:00
parent 48269bd424
commit ad920f656c
14 changed files with 127 additions and 127 deletions

View file

@ -6,10 +6,10 @@ use ctiso\Collection;
abstract class AbstractRule
{
public string $field;
protected $errorMsg;
protected ?string $errorMsg;
protected $ctx;
public function __construct(string $field, $errorMsg = null)
public function __construct(string $field, ?string $errorMsg = null)
{
$this->field = $field;
$this->errorMsg = $errorMsg;