| Conditions | 4 |
| Paths | 4 |
| Total Lines | 16 |
| Lines | 16 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 46 | View Code Duplication | public function mayFollow(): bool |
|
| 47 | { |
||
| 48 | if (! $this->mustRespectRobots) { |
||
| 49 | return true; |
||
| 50 | } |
||
| 51 | |||
| 52 | if (! $this->robotsHeaders->mayFollow()) { |
||
| 53 | return false; |
||
| 54 | } |
||
| 55 | |||
| 56 | if (! $this->robotsMeta->mayFollow()) { |
||
| 57 | return false; |
||
| 58 | } |
||
| 59 | |||
| 60 | return true; |
||
| 61 | } |
||
| 62 | } |
||
| 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..