1 | <?php |
||
13 | class SignupProviderForm extends \yii\base\Model |
||
14 | { |
||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | public $email; |
||
19 | /** |
||
20 | * @var \app\models\entity\User |
||
21 | */ |
||
22 | private $user = null; |
||
23 | |||
24 | /** |
||
25 | * @param User $user |
||
26 | */ |
||
27 | public function __construct($user) |
||
32 | |||
33 | /** |
||
34 | * @inheritdoc |
||
35 | */ |
||
36 | public function rules() |
||
49 | |||
50 | /** |
||
51 | * @inheritdoc |
||
52 | */ |
||
53 | public function attributeLabels() |
||
59 | |||
60 | /** |
||
61 | * Create manually UploadedFile instance by file path |
||
62 | * |
||
63 | * @param string $path file path |
||
64 | * @return UploadedFile |
||
65 | */ |
||
66 | private function makeUploadedFile(string $path): UploadedFile |
||
80 | |||
81 | /** |
||
82 | * Save photo |
||
83 | * |
||
84 | * @param \app\models\entity\UserProfile $profile |
||
85 | * @param string $photo |
||
86 | * @return void |
||
87 | */ |
||
88 | private function savePhoto(UserProfile $profile, string $photo): void |
||
99 | |||
100 | /** |
||
101 | * Login |
||
102 | */ |
||
103 | public function login(): void |
||
108 | |||
109 | /** |
||
110 | * Signs user up |
||
111 | * |
||
112 | * @throws Exception |
||
113 | * @return \app\models\entity\User |
||
114 | */ |
||
115 | public function signup(): User |
||
134 | |||
135 | /** |
||
136 | * Sends an email with a link, for confirm the email |
||
137 | * |
||
138 | * @throws UserException |
||
139 | */ |
||
140 | public function sendEmail(): void |
||
162 | } |
||
163 |
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..