1 | <?php |
||
13 | class RegForm extends Model |
||
14 | { |
||
15 | /** |
||
16 | * Code for captcha. |
||
17 | * |
||
18 | * @var string |
||
19 | */ |
||
20 | public $verifyCode; |
||
21 | |||
22 | /** |
||
23 | * Name of user. |
||
24 | * |
||
25 | * @var string |
||
26 | */ |
||
27 | public $first_name; |
||
28 | |||
29 | /** |
||
30 | * Login to go in to system. |
||
31 | * |
||
32 | * @var string |
||
33 | */ |
||
34 | public $login; |
||
35 | |||
36 | /** |
||
37 | * Email. |
||
38 | * |
||
39 | * @var string |
||
40 | */ |
||
41 | public $email; |
||
42 | |||
43 | /** |
||
44 | * Password to go in to system. |
||
45 | * |
||
46 | * @var string |
||
47 | */ |
||
48 | public $password; |
||
49 | |||
50 | /** |
||
51 | * Repeat password to go in to system. |
||
52 | * |
||
53 | * @var string |
||
54 | */ |
||
55 | public $passwordRepeat; |
||
56 | |||
57 | /** |
||
58 | * User model. |
||
59 | * |
||
60 | * @var null |
||
61 | */ |
||
62 | private $_user = null; |
||
63 | |||
64 | /** |
||
65 | * Validate rules. |
||
66 | * |
||
67 | * @return array |
||
68 | */ |
||
69 | public function rules() |
||
144 | |||
145 | /** |
||
146 | * Attribute labels. |
||
147 | * |
||
148 | * @return array |
||
149 | */ |
||
150 | public function attributeLabels(){ |
||
161 | |||
162 | /** |
||
163 | * Register user. |
||
164 | * |
||
165 | * @return bool |
||
166 | */ |
||
167 | public function reg() |
||
189 | |||
190 | /** |
||
191 | * Returns user record. |
||
192 | * |
||
193 | * @return null|User |
||
194 | */ |
||
195 | public function getUser() |
||
199 | } |
||
200 |
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..