Skip to content

[FAU-418] Move TranslatedDegreeProgramController to common package #21

[FAU-418] Move TranslatedDegreeProgramController to common package

[FAU-418] Move TranslatedDegreeProgramController to common package #21

Triggered via pull request May 15, 2024 16:30
Status Failure
Total duration 34s
Artifacts

quality-assurance-php.yml

on: pull_request
coding-standards-analysis-php  /  coding-standards-php
24s
coding-standards-analysis-php / coding-standards-php
static-code-analysis-php  /  static-analysis-php
16s
static-code-analysis-php / static-analysis-php
Matrix: lint-php
Matrix: tests-unit-php
Waiting for pending jobs
Fit to window
Zoom out
Zoom in

Annotations

8 errors
MixedReturnTypeCoercion: src/Infrastructure/RestApi/RestApiModule.php#L44
src/Infrastructure/RestApi/RestApiModule.php:44:33: MixedReturnTypeCoercion: The declared return type 'array<string, callable(Psr\Container\ContainerInterface):mixed>' for Fau\DegreeProgram\Infrastructure\RestApi\RestApiModule::services is more specific than the inferred return type 'array{'Fau\\DegreeProgram\\Application\\DegreeProgramRetriever'::class: impure-Closure(Psr\Container\ContainerInterface):Fau\DegreeProgram\Application\DegreeProgramRetriever, 'Fau\\DegreeProgram\\Application\\DegreeProgramUpdater'::class: impure-Closure(Psr\Container\ContainerInterface):Fau\DegreeProgram\Application\DegreeProgramUpdater, 'Fau\\DegreeProgram\\Common\\Domain\\DegreeProgramDataValidator'::class: impure-Closure(Psr\Container\ContainerInterface):Fau\DegreeProgram\Common\Infrastructure\Validator\CompositeValidator, 'Fau\\DegreeProgram\\Common\\Infrastructure\\Validator\\JsonSchemaDegreeProgramDataValidator'::class: impure-Closure(Psr\Container\ContainerInterface):Fau\DegreeProgram\Common\Infrastructure\Validator\JsonSchemaDegreeProgramDataValidator, 'Fau\\DegreeProgram\\Infrastructure\\RestApi\\DegreeProgramController'::class: impure-Closure(Psr\Container\ContainerInterface):Fau\DegreeProgram\Infrastructure\RestApi\DegreeProgramController, 'Fau\\DegreeProgram\\Infrastructure\\RestApi\\DegreeProgramRequestFilter'::class: impure-Closure(Psr\Container\ContainerInterface):Fau\DegreeProgram\Infrastructure\RestApi\DegreeProgramRequestFilter, 'Fau\\DegreeProgram\\Infrastructure\\RestApi\\TermsParentObjectController'::class: impure-Closure(Psr\Container\ContainerInterface):Fau\DegreeProgram\Infrastructure\RestApi\TermsParentObjectController, ...<mixed, impure-Closure(Psr\Container\ContainerInterface):mixed>}' (see https://psalm.dev/197)
MixedReturnTypeCoercion: src/Infrastructure/RestApi/RestApiModule.php#L46
src/Infrastructure/RestApi/RestApiModule.php:46:16: MixedReturnTypeCoercion: The type 'array{'Fau\\DegreeProgram\\Application\\DegreeProgramRetriever'::class: impure-Closure(Psr\Container\ContainerInterface):Fau\DegreeProgram\Application\DegreeProgramRetriever, 'Fau\\DegreeProgram\\Application\\DegreeProgramUpdater'::class: impure-Closure(Psr\Container\ContainerInterface):Fau\DegreeProgram\Application\DegreeProgramUpdater, 'Fau\\DegreeProgram\\Common\\Domain\\DegreeProgramDataValidator'::class: impure-Closure(Psr\Container\ContainerInterface):Fau\DegreeProgram\Common\Infrastructure\Validator\CompositeValidator, 'Fau\\DegreeProgram\\Common\\Infrastructure\\Validator\\JsonSchemaDegreeProgramDataValidator'::class: impure-Closure(Psr\Container\ContainerInterface):Fau\DegreeProgram\Common\Infrastructure\Validator\JsonSchemaDegreeProgramDataValidator, 'Fau\\DegreeProgram\\Infrastructure\\RestApi\\DegreeProgramController'::class: impure-Closure(Psr\Container\ContainerInterface):Fau\DegreeProgram\Infrastructure\RestApi\DegreeProgramController, 'Fau\\DegreeProgram\\Infrastructure\\RestApi\\DegreeProgramRequestFilter'::class: impure-Closure(Psr\Container\ContainerInterface):Fau\DegreeProgram\Infrastructure\RestApi\DegreeProgramRequestFilter, 'Fau\\DegreeProgram\\Infrastructure\\RestApi\\TermsParentObjectController'::class: impure-Closure(Psr\Container\ContainerInterface):Fau\DegreeProgram\Infrastructure\RestApi\TermsParentObjectController, ...<mixed, impure-Closure(Psr\Container\ContainerInterface):mixed>}' is more general than the declared return type 'array<string, callable(Psr\Container\ContainerInterface):mixed>' for Fau\DegreeProgram\Infrastructure\RestApi\RestApiModule::services (see https://psalm.dev/197)
UndefinedClass: src/Infrastructure/RestApi/RestApiModule.php#L80
src/Infrastructure/RestApi/RestApiModule.php:80:13: UndefinedClass: Class, interface or enum named Fau\DegreeProgram\Common\Infrastructure\RestApi\TranslatedDegreeProgramController does not exist (see https://psalm.dev/019)
UndefinedClass: src/Infrastructure/RestApi/RestApiModule.php#L80
src/Infrastructure/RestApi/RestApiModule.php:80:105: UndefinedClass: Class, interface or enum named Fau\DegreeProgram\Common\Infrastructure\RestApi\TranslatedDegreeProgramController does not exist (see https://psalm.dev/019)
UndefinedClass: src/Infrastructure/RestApi/RestApiModule.php#L94
src/Infrastructure/RestApi/RestApiModule.php:94:62: UndefinedClass: Class, interface or enum named Fau\DegreeProgram\Common\Infrastructure\RestApi\TranslatedDegreeProgramController does not exist (see https://psalm.dev/019)
MixedArgument: src/Infrastructure/RestApi/RestApiModule.php#L94
src/Infrastructure/RestApi/RestApiModule.php:94:62: MixedArgument: Argument 1 of Psr\Container\ContainerInterface::get cannot be mixed, expecting string (see https://psalm.dev/030)
MixedMethodCall: src/Infrastructure/RestApi/RestApiModule.php#L134
src/Infrastructure/RestApi/RestApiModule.php:134:53: MixedMethodCall: Cannot determine the type of $translatedDegreeProgramController when calling method register_routes (see https://psalm.dev/015)
static-code-analysis-php / static-analysis-php
Process completed with exit code 2.