Issues (92)

Registry/CommandHandler/CommandHandlerRegistry.php (3 issues)

1
<?php
2
3
declare(strict_types=1);
4
5
namespace Gember\EventSourcing\Registry\CommandHandler;
6
7
use Gember\EventSourcing\Resolver\UseCase\CommandHandlerDefinition;
0 ignored issues
show
The type Gember\EventSourcing\Res...ommandHandlerDefinition was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
8
use Gember\EventSourcing\UseCase\EventSourcedUseCase;
9
10
/**
11
 * Retrieve command handler definition based on command name (FQCN).
12
 */
13
interface CommandHandlerRegistry
14
{
15
    /**
16
     * @param class-string $commandName
0 ignored issues
show
Documentation Bug introduced by
The doc comment class-string at position 0 could not be parsed: Unknown type name 'class-string' at position 0 in class-string.
Loading history...
17
     *
18
     * @throws CommandHandlerNotRegisteredException
19
     *
20
     * @return array{class-string<EventSourcedUseCase>, CommandHandlerDefinition}
0 ignored issues
show
Documentation Bug introduced by
The doc comment array{class-string<Event...mmandHandlerDefinition} at position 2 could not be parsed: Expected ':' at position 2, but found 'class-string'.
Loading history...
21
     */
22
    public function retrieve(string $commandName): array;
23
}
24