1 | <?php |
||
22 | class Validator |
||
23 | { |
||
24 | /** |
||
25 | * @var array |
||
26 | */ |
||
27 | protected $likes = []; |
||
28 | |||
29 | /** |
||
30 | * Validator constructor. |
||
31 | */ |
||
32 | public function __construct() |
||
36 | |||
37 | /** |
||
38 | * @param Message $message |
||
39 | * @return Status[]|Collection |
||
40 | */ |
||
41 | public function validate(Message $message) |
||
65 | |||
66 | /** |
||
67 | * @param Message $message |
||
68 | * @param User $mention |
||
69 | * @return Status |
||
70 | */ |
||
71 | protected function validateMessage(Message $message, User $mention) |
||
87 | |||
88 | /** |
||
89 | * @param Message $message |
||
90 | * @param User $mention |
||
91 | * @return bool |
||
92 | */ |
||
93 | protected function validateUser(Message $message, User $mention) |
||
97 | |||
98 | /** |
||
99 | * @param Message $message |
||
100 | * @param User $mention |
||
101 | * @return bool |
||
102 | */ |
||
103 | protected function validateTimeout(Message $message, User $mention) |
||
108 | |||
109 | |||
110 | /** |
||
111 | * @param Message $message |
||
112 | * @return bool |
||
113 | */ |
||
114 | protected function validateText(Message $message) |
||
121 | } |
||
122 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..