| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function init() |
||
| 32 | 7 | { |
|
| 33 | 7 | $this->add($this->createInput(self::NAME)); |
|
| 34 | 7 | $this->add($this->createInput(self::EMAIL)); |
|
| 35 | $this->add($this->createInput(self::SUBJECT)); |
||
| 36 | 7 | $this->add($this->createInput(self::COMMENTS)); |
|
| 37 | |||
| 38 | 7 | $recaptchaInput = $this->createInput(self::RECAPTCHA); |
|
| 39 | 7 | $recaptchaInput->getValidatorChain()->attach(new RecaptchaValidator($this->recaptcha)); |
|
| 40 | 7 | $this->add($recaptchaInput); |
|
| 41 | 7 | } |
|
| 42 | |||
| 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..