| 1 | <?php |
||
| 12 | class ContactFilter extends InputFilter |
||
| 13 | { |
||
| 14 | const NAME = 'name'; |
||
| 15 | const EMAIL = 'email'; |
||
| 16 | const SUBJECT = 'subject'; |
||
| 17 | const COMMENTS = 'comments'; |
||
| 18 | const RECAPTCHA = 'g-recaptcha-response'; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var Recaptcha |
||
| 22 | */ |
||
| 23 | protected $recaptcha; |
||
| 24 | |||
| 25 | public function __construct(ReCaptcha $recaptcha) |
||
| 30 | 7 | ||
| 31 | public function init() |
||
| 42 | |||
| 43 | 7 | /** |
|
| 44 | 7 | * @param $name |
|
| 45 | 7 | * @param bool|true $required |
|
| 46 | 7 | * @return Input |
|
| 47 | */ |
||
| 48 | protected function createInput($name, $required = true): Input |
||
| 56 | } |
||
| 57 |
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..