Skip to content

fixed eventParticipation collection in Controller, changed getEvents(… #2932

fixed eventParticipation collection in Controller, changed getEvents(…

fixed eventParticipation collection in Controller, changed getEvents(… #2932

Triggered via push July 26, 2024 11:57
Status Failure
Total duration 49s
Artifacts

main.yml

on: push
Coding Guidelines Check
11s
Coding Guidelines Check
FE Asset Linting
15s
FE Asset Linting
FE asset formatting check
13s
FE asset formatting check
PHPMD
9s
PHPMD
Static Code Analysis
31s
Static Code Analysis
Run frontend unit- and functional-tests
38s
Run frontend unit- and functional-tests
Build Docker Images
0s
Build Docker Images
Run E2E-tests via Cypress
0s
Run E2E-tests via Cypress
Run backend unit- and functional-tests
0s
Run backend unit- and functional-tests
Publish
0s
Publish
Scan vulnerabilities
0s
Scan vulnerabilities
Deploy and notify
0s
Deploy and notify
Fit to window
Zoom out
Zoom in

Annotations

16 errors and 2 warnings
PHPMD
Process completed with exit code 2.
Coding Guidelines Check
Process completed with exit code 8.
FE asset formatting check
Process completed with exit code 1.
FE Asset Linting: src/Resources/src/components/menu/MenuDay.vue#L73
'EventDTO' is defined but never used
FE Asset Linting
Process completed with exit code 1.
InvalidArgument: src/Mealz/MealBundle/Controller/EventController.php#L115
src/Mealz/MealBundle/Controller/EventController.php:115:86: InvalidArgument: Argument 2 of App\Mealz\MealBundle\Service\EventParticipationService::getEventParticipationData expects int|null, but App\Mealz\UserBundle\Entity\Profile provided (see https://psalm.dev/004)
InvalidArgument: src/Mealz/MealBundle/Controller/EventController.php#L134
src/Mealz/MealBundle/Controller/EventController.php:134:86: InvalidArgument: Argument 2 of App\Mealz\MealBundle\Service\EventParticipationService::getEventParticipationData expects int|null, but App\Mealz\UserBundle\Entity\Profile provided (see https://psalm.dev/004)
UndefinedMethod: src/Mealz/MealBundle/Controller/MealAdminController.php#L236
src/Mealz/MealBundle/Controller/MealAdminController.php:236:28: UndefinedMethod: Method App\Mealz\MealBundle\Entity\Day::offsetGet does not exist (see https://psalm.dev/022)
TooFewArguments: src/Mealz/MealBundle/Controller/MealGuestController.php#L104
src/Mealz/MealBundle/Controller/MealGuestController.php:104:47: TooFewArguments: Too few arguments for App\Mealz\MealBundle\Entity\Day::getEvent - expecting day to be passed (see https://psalm.dev/025)
TooFewArguments: src/Mealz/MealBundle/Controller/MealGuestController.php#L104
src/Mealz/MealBundle/Controller/MealGuestController.php:104:47: TooFewArguments: Too few arguments for App\Mealz\MealBundle\Entity\Day::getEvent - expecting id to be passed (see https://psalm.dev/025)
TooFewArguments: src/Mealz/MealBundle/Controller/MealGuestController.php#L104
src/Mealz/MealBundle/Controller/MealGuestController.php:104:47: TooFewArguments: Too few arguments for method App\Mealz\MealBundle\Entity\Day::getevent saw 0 (see https://psalm.dev/025)
InvalidReturnType: src/Mealz/MealBundle/Entity/Day.php#L177
src/Mealz/MealBundle/Entity/Day.php:177:22: InvalidReturnType: The declared return type 'array{dateTime: DateTime, enabled: bool, event: int|null, lockParticipationDateTime: DateTime, meals: array<''|int, non-empty-list<array<array-key, mixed>>>, week: int|null}' for App\Mealz\MealBundle\Entity\Day::jsonSerialize is incorrect, got 'array{dateTime: DateTime, enabled: bool, events: array<never, never>, lockParticipationDateTime: DateTime, meals: array<''|int, non-empty-list<array{dateTime: DateTime, day: int|null, dish: null|string, id: int|null, lockTime: DateTime, participationLimit: int}>>, week: int|null}' which is different due to additional array shape fields (events) (see https://psalm.dev/011)
InvalidReturnStatement: src/Mealz/MealBundle/Entity/Day.php#L199
src/Mealz/MealBundle/Entity/Day.php:199:16: InvalidReturnStatement: The inferred type 'array{dateTime: DateTime, enabled: bool, events: array<never, never>, lockParticipationDateTime: DateTime, meals: array<''|int, non-empty-list<array{dateTime: DateTime, day: int|null, dish: null|string, id: int|null, lockTime: DateTime, participationLimit: int}>>, week: int|null}' does not match the declared return type 'array{dateTime: DateTime, enabled: bool, event: int|null, lockParticipationDateTime: DateTime, meals: array<''|int, non-empty-list<array<array-key, mixed>>>, week: int|null}' for App\Mealz\MealBundle\Entity\Day::jsonSerialize due to additional array shape fields (events) (see https://psalm.dev/128)
InvalidArgument: src/Mealz/MealBundle/Service/ApiService.php#L127
src/Mealz/MealBundle/Service/ApiService.php:127:69: InvalidArgument: Argument 2 of App\Mealz\MealBundle\Service\EventParticipationService::getEventParticipationData expects int|null, but App\Mealz\UserBundle\Entity\Profile|null provided (see https://psalm.dev/004)
TypeDoesNotContainNull: src/Mealz/MealBundle/Service/ApiService.php#L137
src/Mealz/MealBundle/Service/ApiService.php:137:13: TypeDoesNotContainNull: App\Mealz\MealBundle\Entity\EventCollection does not contain null (see https://psalm.dev/090)
Run frontend unit- and functional-tests
Process completed with exit code 1.
PHPMD: src/Mealz/MealBundle/Controller/MealAdminController.php#L205
Avoid unused local variables such as '$eventCollection'.
PHPMD: src/Mealz/UserBundle/DataFixtures/ORM/LoadUsers.php#L124
Avoid unused parameters such as '$email'.