Skip to content

updated events in test #2938

updated events in test

updated events in test #2938

Triggered via push July 30, 2024 08:45
Status Failure
Total duration 1m 0s
Artifacts

main.yml

on: push
Coding Guidelines Check
13s
Coding Guidelines Check
FE Asset Linting
20s
FE Asset Linting
FE asset formatting check
14s
FE asset formatting check
PHPMD
10s
PHPMD
Static Code Analysis
39s
Static Code Analysis
Run frontend unit- and functional-tests
45s
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

14 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.
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)
TooFewArguments: src/Mealz/MealBundle/Controller/MealGuestController.php#L130
src/Mealz/MealBundle/Controller/MealGuestController.php:130:56: TooFewArguments: Too few arguments for App\Mealz\MealBundle\Service\EventParticipationService::joinAsGuest - expecting eventId to be passed (see https://psalm.dev/025)
TooFewArguments: src/Mealz/MealBundle/Controller/MealGuestController.php#L130
src/Mealz/MealBundle/Controller/MealGuestController.php:130:56: TooFewArguments: Too few arguments for method App\Mealz\MealBundle\Service\EventParticipationService::joinasguest saw 4 (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'.