edited the mapping of event, url generation works now #3043
Annotations
10 errors
src/Mealz/MealBundle/Controller/MealGuestController.php#L73
src/Mealz/MealBundle/Controller/MealGuestController.php:73:50: TooFewArguments: Too few arguments for App\Mealz\MealBundle\Repository\GuestInvitationRepositoryInterface::findOrCreateInvitation - expecting eventParticipation to be passed (see https://psalm.dev/025)
|
src/Mealz/MealBundle/Controller/MealGuestController.php#L73
src/Mealz/MealBundle/Controller/MealGuestController.php:73:50: TooFewArguments: Too few arguments for method App\Mealz\MealBundle\Repository\GuestInvitationRepositoryInterface::findorcreateinvitation saw 2 (see https://psalm.dev/025)
|
src/Mealz/MealBundle/Controller/MealGuestController.php#L124
src/Mealz/MealBundle/Controller/MealGuestController.php:124:45: TooManyArguments: Too many arguments for method Doctrine\Persistence\ObjectRepository::find - saw 2 (see https://psalm.dev/026)
|
src/Mealz/MealBundle/Entity/Day.php#L178
src/Mealz/MealBundle/Entity/Day.php:178: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, dayId: int|null, enabled: bool, events: array<int, array<array-key, mixed>>, 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, dayId) (see https://psalm.dev/011)
|
src/Mealz/MealBundle/Entity/Day.php#L202
src/Mealz/MealBundle/Entity/Day.php:202:16: InvalidReturnStatement: The inferred type 'array{dateTime: DateTime, dayId: int|null, enabled: bool, events: array<int, array<array-key, mixed>>, 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, dayId) (see https://psalm.dev/128)
|
src/Mealz/MealBundle/Entity/GuestInvitation.php#L50
src/Mealz/MealBundle/Entity/GuestInvitation.php:50:47: InvalidNullableReturnType: The declared return type 'App\Mealz\MealBundle\Entity\EventParticipation' for App\Mealz\MealBundle\Entity\GuestInvitation::getEventParticipation is not nullable, but 'App\Mealz\MealBundle\Entity\EventParticipation|null' contains null (see https://psalm.dev/144)
|
src/Mealz/MealBundle/Entity/GuestInvitation.php#L52
src/Mealz/MealBundle/Entity/GuestInvitation.php:52:16: NullableReturnStatement: The declared return type 'App\Mealz\MealBundle\Entity\EventParticipation' for App\Mealz\MealBundle\Entity\GuestInvitation::getEventParticipation is not nullable, but the function returns 'App\Mealz\MealBundle\Entity\EventParticipation|null' (see https://psalm.dev/139)
|
src/Mealz/MealBundle/Helper/MealAdminHelper.php#L34
src/Mealz/MealBundle/Helper/MealAdminHelper.php:34:46: InvalidNullableReturnType: The declared return type 'App\Mealz\MealBundle\Entity\Event' for App\Mealz\MealBundle\Helper\MealAdminHelper::findEvent is not nullable, but 'App\Mealz\MealBundle\Entity\Event|null' contains null (see https://psalm.dev/144)
|
src/Mealz/MealBundle/Helper/MealAdminHelper.php#L36
src/Mealz/MealBundle/Helper/MealAdminHelper.php:36:16: NullableReturnStatement: The declared return type 'App\Mealz\MealBundle\Entity\Event' for App\Mealz\MealBundle\Helper\MealAdminHelper::findEvent is not nullable, but the function returns 'App\Mealz\MealBundle\Entity\Event|null' (see https://psalm.dev/139)
|
src/Mealz/MealBundle/Message/WeeklyMenuMessage.php#L94
src/Mealz/MealBundle/Message/WeeklyMenuMessage.php:94:38: UndefinedDocblockClass: Docblock-defined class, interface or enum named App\Mealz\MealBundle\Message\Event does not exist (see https://psalm.dev/200)
|
This job failed
Loading