chore: add cdc pattern example #487
Annotations
3 errors
MoreSpecificReturnType:
apps/mooc/backend/src/Command/DomainEvents/PublishDomainEventsFromMutationsCommand.php#L77
apps/mooc/backend/src/Command/DomainEvents/PublishDomainEventsFromMutationsCommand.php:77:74: MoreSpecificReturnType: The declared return type 'CodelyTv\Shared\Infrastructure\Cdc\DatabaseMutationToDomainEvent|null' for CodelyTv\Apps\Mooc\Backend\Command\DomainEvents\PublishDomainEventsFromMutationsCommand::findTransformer is more specific than the inferred return type 'null|object' (see https://psalm.dev/070)
|
LessSpecificReturnStatement:
apps/mooc/backend/src/Command/DomainEvents/PublishDomainEventsFromMutationsCommand.php#L88
apps/mooc/backend/src/Command/DomainEvents/PublishDomainEventsFromMutationsCommand.php:88:10: LessSpecificReturnStatement: The type 'null|object' is more general than the declared return type 'CodelyTv\Shared\Infrastructure\Cdc\DatabaseMutationToDomainEvent|null' for CodelyTv\Apps\Mooc\Backend\Command\DomainEvents\PublishDomainEventsFromMutationsCommand::findTransformer (see https://psalm.dev/129)
|
build
Process completed with exit code 2.
|