| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function project(ReadModelProjector $projector): ReadModelProjector |
||
| 17 | { |
||
| 18 | $projector->fromStream('event_stream') |
||
| 19 | ->when([ |
||
| 20 | CategoryWasCreated::class => function ($state, CategoryWasCreated $event) { |
||
| 21 | /** @var CategoryReadModel $readModel */ |
||
| 22 | $readModel = $this->readModel(); |
||
| 23 | $readModel->stack('insert', [ |
||
| 24 | 'id' => $event->getId()->toString(), |
||
| 25 | 'name' => $event->getName()->toString(), |
||
| 26 | ]); |
||
| 27 | }, |
||
| 28 | ])->run(); |
||
| 29 | } |
||
| 31 |
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