| Total Complexity | 2 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class Utils |
||
| 6 | {
|
||
| 7 | /** |
||
| 8 | * @var TranslatorInterface |
||
| 9 | */ |
||
| 10 | public $trans; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var Input |
||
| 14 | */ |
||
| 15 | public $input; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var Str |
||
| 19 | */ |
||
| 20 | public $str; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var History |
||
| 24 | */ |
||
| 25 | public $history; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param TranslatorInterface $trans |
||
| 29 | * @param Input $input |
||
| 30 | * @param Str $str |
||
| 31 | * @param History $history |
||
| 32 | */ |
||
| 33 | public function __construct(TranslatorInterface $trans, Input $input, Str $str, History $history) |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param string $string |
||
| 43 | * |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | public function html(string $string): string |
||
| 51 |
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..