| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | 1 | public function __construct() |
|
| 24 | { |
||
| 25 | 1 | $dispatcher = new SymfonyEventDispatcher(); |
|
| 26 | 1 | $r = new \ReflectionObject($dispatcher); |
|
| 27 | 1 | $params = $r->getMethod('dispatch')->getParameters(); |
|
| 28 | |||
| 29 | 1 | if('event' === $params[0]->getName()){ |
|
| 30 | 1 | $this->version = '4.3'; |
|
| 31 | } |
||
| 32 | |||
| 33 | 1 | $this->dispatcher = $dispatcher; |
|
| 34 | } |
||
| 57 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths