| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | 10 | public function __construct(\Exception $e = null) { |
|
| 34 | 10 | if (!is_null($e)) { |
|
| 35 | 9 | $this->setException($e); |
|
| 36 | } |
||
| 37 | |||
| 38 | 10 | $oErrorMap = new ErrorProcessorMap(); |
|
| 39 | 10 | $oErrorMap->setTemplatePath(VSC_SRC_PATH . 'templates'); |
|
| 40 | 10 | $oErrorMap->setTemplate('error.tpl.php'); |
|
| 41 | |||
| 42 | 10 | $this->setMap($oErrorMap); |
|
| 43 | 10 | } |
|
| 44 | |||
| 66 |
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..