[FAU-441] feat: update container definition for view repository #55
quality-assurance-php.yml
on: pull_request
coding-standards-analysis-php
/
coding-standards-php
17s
static-code-analysis-php
/
static-analysis-php
15s
Matrix: lint-php
Matrix: tests-unit-php
Waiting for pending jobs
Annotations
8 errors
MixedReturnTypeCoercion:
src/Infrastructure/Repository/RepositoryModule.php#L102
src/Infrastructure/Repository/RepositoryModule.php:102:16: MixedReturnTypeCoercion: The declared return type 'array<string, callable(Psr\Container\ContainerInterface):mixed>' for Fau\DegreeProgram\Output\Infrastructure\Repository\RepositoryModule::makeDatabaseViewRepositoryDefinition is more specific than the inferred return type 'array{'Fau\\DegreeProgram\\Common\\Application\\ConditionalFieldsFilter'::class: pure-Closure():Fau\DegreeProgram\Common\Application\ConditionalFieldsFilter, 'Fau\\DegreeProgram\\Common\\Domain\\DegreeProgramRepository'::class: impure-Closure(Psr\Container\ContainerInterface):Fau\DegreeProgram\Common\Infrastructure\Repository\WordPressDatabaseDegreeProgramRepository, 'Fau\\DegreeProgram\\Common\\Infrastructure\\Repository\\FacultyRepository'::class: pure-Closure():Fau\DegreeProgram\Common\Infrastructure\Repository\FacultyRepository, 'Fau\\DegreeProgram\\Common\\Infrastructure\\Repository\\WordPressDatabaseDegreeProgramViewRepository'::class: impure-Closure(Psr\Container\ContainerInterface):Fau\DegreeProgram\Common\Infrastructure\Repository\WordPressDatabaseDegreeProgramViewRepository, 'Fau\\DegreeProgram\\Common\\Infrastructure\\Sanitizer\\HtmlDegreeProgramSanitizer'::class: pure-Closure():Fau\DegreeProgram\Common\Infrastructure\Sanitizer\HtmlDegreeProgramSanitizer, ...<mixed, pure-Closure():mixed>}' (see https://psalm.dev/197)
|
MixedReturnTypeCoercion:
src/Infrastructure/Repository/RepositoryModule.php#L106
src/Infrastructure/Repository/RepositoryModule.php:106:16: MixedReturnTypeCoercion: The type 'array{'Fau\\DegreeProgram\\Common\\Application\\ConditionalFieldsFilter'::class: pure-Closure():Fau\DegreeProgram\Common\Application\ConditionalFieldsFilter, 'Fau\\DegreeProgram\\Common\\Domain\\DegreeProgramRepository'::class: impure-Closure(Psr\Container\ContainerInterface):Fau\DegreeProgram\Common\Infrastructure\Repository\WordPressDatabaseDegreeProgramRepository, 'Fau\\DegreeProgram\\Common\\Infrastructure\\Repository\\FacultyRepository'::class: pure-Closure():Fau\DegreeProgram\Common\Infrastructure\Repository\FacultyRepository, 'Fau\\DegreeProgram\\Common\\Infrastructure\\Repository\\WordPressDatabaseDegreeProgramViewRepository'::class: impure-Closure(Psr\Container\ContainerInterface):Fau\DegreeProgram\Common\Infrastructure\Repository\WordPressDatabaseDegreeProgramViewRepository, 'Fau\\DegreeProgram\\Common\\Infrastructure\\Sanitizer\\HtmlDegreeProgramSanitizer'::class: pure-Closure():Fau\DegreeProgram\Common\Infrastructure\Sanitizer\HtmlDegreeProgramSanitizer, ...<mixed, pure-Closure():mixed>}' is more general than the declared return type 'array<string, callable(Psr\Container\ContainerInterface):mixed>' for Fau\DegreeProgram\Output\Infrastructure\Repository\RepositoryModule::makeDatabaseViewRepositoryDefinition (see https://psalm.dev/197)
|
UndefinedClass:
src/Infrastructure/Repository/RepositoryModule.php#L109
src/Infrastructure/Repository/RepositoryModule.php:109:13: UndefinedClass: Class, interface or enum named Fau\DegreeProgram\Common\Infrastructure\Repository\TimestampRepository does not exist (see https://psalm.dev/019)
|
UndefinedClass:
src/Infrastructure/Repository/RepositoryModule.php#L109
src/Infrastructure/Repository/RepositoryModule.php:109:62: UndefinedClass: Class, interface or enum named Fau\DegreeProgram\Common\Infrastructure\Repository\TimestampRepository does not exist (see https://psalm.dev/019)
|
TooManyArguments:
src/Infrastructure/Repository/RepositoryModule.php#L118
src/Infrastructure/Repository/RepositoryModule.php:118:112: TooManyArguments: Too many arguments for Fau\DegreeProgram\Common\Infrastructure\Repository\WordPressDatabaseDegreeProgramViewRepository::__construct - expecting 4 but saw 5 (see https://psalm.dev/026)
|
UndefinedClass:
src/Infrastructure/Repository/RepositoryModule.php#L123
src/Infrastructure/Repository/RepositoryModule.php:123:33: UndefinedClass: Class, interface or enum named Fau\DegreeProgram\Common\Infrastructure\Repository\TimestampRepository does not exist (see https://psalm.dev/019)
|
MixedArgument:
src/Infrastructure/Repository/RepositoryModule.php#L123
src/Infrastructure/Repository/RepositoryModule.php:123:33: MixedArgument: Argument 1 of Psr\Container\ContainerInterface::get cannot be mixed, expecting string (see https://psalm.dev/030)
|
static-code-analysis-php / static-analysis-php
Process completed with exit code 2.
|