| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 4 | ||
| Bugs | 1 | Features | 2 |
| 1 | <?php |
||
| 20 | 1 | public function __invoke($rootConfigFile, array $rootConfigOverrides) |
|
| 21 | { |
||
| 22 | 1 | $this->collector->setRootConfigOverrides($rootConfigOverrides); |
|
| 23 | 1 | $rootPage = $this->collector->__invoke($rootConfigFile); |
|
| 24 | 1 | $processor = $this->processorBuilder->newProcessor($rootPage->getConfig()); |
|
| 25 | 1 | $processor->__invoke($rootPage); |
|
|
|
|||
| 26 | 1 | $this->timer->report(); |
|
| 27 | 1 | } |
|
| 28 | } |
||
| 29 |
This check looks for parameters that are defined as one type in their type hint or doc comment but seem to be used as a narrower type, i.e an implementation of an interface or a subclass.
Consider changing the type of the parameter or doing an instanceof check before assuming your parameter is of the expected type.