| Total Complexity | 2 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class TinymengException extends Exception |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var int |
||
| 16 | */ |
||
| 17 | private $headers; |
||
| 18 | |||
| 19 | public function __construct($message = '', \Exception $previous = null, array $headers = [], $code = 0) |
||
| 20 | { |
||
| 21 | $this->headers = $headers; |
||
|
|
|||
| 22 | |||
| 23 | parent::__construct(400,$message,$previous,$headers,$code); |
||
| 24 | } |
||
| 25 | |||
| 26 | public function getHeaders() |
||
| 29 | } |
||
| 30 | } |
||
| 31 |
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..