Passed
Push — master ( e74480...5032f6 )
by Alexander
14:47 queued 10s
created

src/HasValidationErrorMessage.php (1 issue)

1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\Validator;
6
7
trait HasValidationErrorMessage
8
{
9 3
    public function message(string $message): self
10
    {
11 3
        $new = clone $this;
12 3
        $new->message = $message;
0 ignored issues
show
Bug Best Practice introduced by
The property message does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
13 3
        return $new;
14
    }
15
}
16