chore: Добавлены аннотации к типам
This commit is contained in:
parent
48269bd424
commit
ad920f656c
14 changed files with 127 additions and 127 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue