| Total Complexity | 3 | 
| Total Lines | 28 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 0 | ||
| 1 | <?php | ||
| 21 | class ResponseSubscriber implements EventSubscriberInterface | ||
| 22 | { | ||
| 23 | 597 | public function __construct( | |
| 26 | 597 | } | |
| 27 | |||
| 28 | /** | ||
| 29 |      * {@inheritdoc} | ||
| 30 | */ | ||
| 31 | 1 | public static function getSubscribedEvents(): array | |
| 32 |     { | ||
| 33 | 1 | return [ | |
| 34 | 1 | ResponseEvent::class => [ | |
| 35 | 1 | 'onKernelResponse', | |
| 36 | 1 | 10, | |
| 37 | 1 | ], | |
| 38 | 1 | ]; | |
| 39 | } | ||
| 40 | |||
| 41 | /** | ||
| 42 | * Subscriber method to attach API version to every response. | ||
| 43 | */ | ||
| 44 | 597 | public function onKernelResponse(ResponseEvent $event): void | |
| 49 | 597 | ]); | |
| 50 | } | ||
| 52 | 
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