Total Complexity | 2 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
10 | class TagName |
||
11 | { |
||
12 | /** |
||
13 | * @var tagName |
||
14 | */ |
||
15 | protected $tagName; |
||
16 | |||
17 | /** |
||
18 | * Tag Name constructor |
||
19 | * |
||
20 | * @param string $tn |
||
21 | */ |
||
22 | 4 | public function __construct ( string $tn ) |
|
23 | { |
||
24 | 4 | $this->tagName = $tn; |
|
|
|||
25 | 4 | } |
|
26 | |||
27 | /** |
||
28 | * @return string |
||
29 | */ |
||
30 | 4 | public function __toString () : string |
|
33 | } |
||
34 | } |
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..