| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 10 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function init($nocache = false, $clientTimeout = 31000) |
||
| 19 | { |
||
| 20 | if ($nocache) { |
||
| 21 | $this->chromeClient = new HeadlessChrome($clientTimeout); |
||
| 22 | } else { |
||
| 23 | $chromeClient = new HeadlessChrome($clientTimeout); |
||
| 24 | $cachedClient = new FileCacheDecorator($chromeClient); |
||
| 25 | $this->chromeClient = new LoggerDecorator($cachedClient); |
||
|
|
|||
| 26 | } |
||
| 27 | } |
||
| 28 | |||
| 54 |
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..