updated api calls for events now including event id, added getEventId… #2937
main.yml
on: push
Coding Guidelines Check
14s
FE Asset Linting
19s
FE asset formatting check
18s
PHPMD
14s
Static Code Analysis
42s
Run frontend unit- and functional-tests
39s
Run E2E-tests via Cypress
0s
Run backend unit- and functional-tests
0s
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.
|
Run frontend unit- and functional-tests
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)
|
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'.
|