Conditions | 4 |
Paths | 4 |
Total Lines | 16 |
Lines | 16 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
29 | View Code Duplication | public function mayIndex(): bool |
|
30 | { |
||
31 | if (! $this->mustRespectRobots) { |
||
32 | return true; |
||
33 | } |
||
34 | |||
35 | if (! $this->robotsHeaders->mayIndex()) { |
||
36 | return false; |
||
37 | } |
||
38 | |||
39 | if (! $this->robotsMeta->mayIndex()) { |
||
40 | return false; |
||
41 | } |
||
42 | |||
43 | return true; |
||
44 | } |
||
45 | |||
63 |
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..