Skip to content

updated fixture and tried to adjust the files to the new EventPartici… #2929

updated fixture and tried to adjust the files to the new EventPartici…

updated fixture and tried to adjust the files to the new EventPartici… #2929

Triggered via push July 25, 2024 11:16
Status Failure
Total duration 51s
Artifacts

main.yml

on: push
Coding Guidelines Check
12s
Coding Guidelines Check
FE Asset Linting
17s
FE Asset Linting
FE asset formatting check
17s
FE asset formatting check
PHPMD
9s
PHPMD
Static Code Analysis
39s
Static Code Analysis
Run frontend unit- and functional-tests
37s
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 1 warning
PHPMD
Process completed with exit code 2.
Coding Guidelines Check
Process completed with exit code 8.
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.
FE asset formatting check
Process completed with exit code 1.
Run frontend unit- and functional-tests
Process completed with exit code 1.
UndefinedMethod: src/Mealz/MealBundle/Controller/MealGuestController.php#L104
src/Mealz/MealBundle/Controller/MealGuestController.php:104:47: UndefinedMethod: Method App\Mealz\MealBundle\Entity\Day::getEvent does not exist (see https://psalm.dev/022)
InvalidReturnType: src/Mealz/MealBundle/Entity/Day.php#L158
src/Mealz/MealBundle/Entity/Day.php:158: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#L180
src/Mealz/MealBundle/Entity/Day.php:180: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)
UndefinedMethod: src/Mealz/MealBundle/Service/ApiService.php#L137
src/Mealz/MealBundle/Service/ApiService.php:137:28: UndefinedMethod: Method App\Mealz\MealBundle\Entity\Day::getEvent does not exist (see https://psalm.dev/022)
UndefinedMethod: src/Mealz/MealBundle/Service/ApiService.php#L142
src/Mealz/MealBundle/Service/ApiService.php:142:29: UndefinedMethod: Method App\Mealz\MealBundle\Entity\Day::getEvent does not exist (see https://psalm.dev/022)
UndefinedMethod: src/Mealz/MealBundle/Service/EventParticipationService.php#L59
src/Mealz/MealBundle/Service/EventParticipationService.php:59:37: UndefinedMethod: Method App\Mealz\MealBundle\Entity\Day::getEvent does not exist (see https://psalm.dev/022)
UndefinedMethod: src/Mealz/MealBundle/Service/EventParticipationService.php#L80
src/Mealz/MealBundle/Service/EventParticipationService.php:80:37: UndefinedMethod: Method App\Mealz\MealBundle\Entity\Day::getEvent does not exist (see https://psalm.dev/022)
UndefinedMethod: src/Mealz/MealBundle/Service/EventParticipationService.php#L112
src/Mealz/MealBundle/Service/EventParticipationService.php:112:46: UndefinedMethod: Method App\Mealz\MealBundle\Entity\Day::getEvent does not exist (see https://psalm.dev/022)
UndefinedMethod: src/Mealz/MealBundle/Service/EventParticipationService.php#L129
src/Mealz/MealBundle/Service/EventParticipationService.php:129:37: UndefinedMethod: Method App\Mealz\MealBundle\Entity\Day::getEvent does not exist (see https://psalm.dev/022)
UndefinedMethod: src/Mealz/MealBundle/Service/EventParticipationService.php#L149
src/Mealz/MealBundle/Service/EventParticipationService.php:149:37: UndefinedMethod: Method App\Mealz\MealBundle\Entity\Day::getEvent does not exist (see https://psalm.dev/022)
PHPMD: src/Mealz/UserBundle/DataFixtures/ORM/LoadUsers.php#L124
Avoid unused parameters such as '$email'.