API-Skeletons /
doctrine-orm-graphql
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | namespace ApiSkeletons\Doctrine\ORM\GraphQL\Event; |
||
| 6 | |||
| 7 | use ArrayObject; |
||
| 8 | use League\Event\HasEventName; |
||
| 9 | use Override; |
||
|
0 ignored issues
–
show
|
|||
| 10 | |||
| 11 | /** |
||
| 12 | * This event is fired each time an entity GraphQL type is created |
||
| 13 | */ |
||
| 14 | class EntityDefinition implements |
||
| 15 | HasEventName |
||
| 16 | { |
||
| 17 | /** @param ArrayObject $definition<'description'|'fields'|'name'|'resolveField', mixed> */ |
||
| 18 | public function __construct( |
||
| 19 | protected readonly ArrayObject $definition, |
||
| 20 | protected readonly string $eventName, |
||
| 21 | ) { |
||
| 22 | } |
||
| 23 | |||
| 24 | #[Override] |
||
| 25 | public function eventName(): string |
||
| 26 | { |
||
| 27 | return $this->eventName; |
||
| 28 | } |
||
| 29 | |||
| 30 | public function getDefinition(): ArrayObject |
||
| 31 | { |
||
| 32 | return $this->definition; |
||
| 33 | } |
||
| 34 | } |
||
| 35 |
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