这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@JohnVillalovos
Copy link
Contributor

Resolves "Class 'ParticipationNotification' not found" error when guests try to accept/decline reservation invitations.

Fixes #659

Resolves "Class 'ParticipationNotification' not found" error when guests
try to accept/decline reservation invitations.

Fixes #659
Copilot AI review requested due to automatic review settings July 14, 2025 06:52
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses a missing class import by adding the required namespace file for ParticipationNotification, resolving the "Class 'ParticipationNotification' not found" error when guests accept or decline reservation invitations.

  • Added a require_once for the Notification namespace in the presenter.
  • Ensures ParticipationNotification is loaded before use.
Comments suppressed due to low confidence (2)

Presenters/GuestParticipationPresenter.php:4

  • Add or update tests covering the guest accept/decline flows to verify that the ParticipationNotification class is correctly loaded and no class-not-found errors occur.
require_once(ROOT_DIR . 'lib/Application/Reservation/Notification/namespace.php');

Presenters/GuestParticipationPresenter.php:4

  • [nitpick] Consider using Composer's PSR-4 autoloading instead of manual require_once statements to improve maintainability and reduce boilerplate imports.
require_once(ROOT_DIR . 'lib/Application/Reservation/Notification/namespace.php');

@JohnVillalovos JohnVillalovos merged commit 351a066 into develop Jul 14, 2025
10 checks passed
@JohnVillalovos JohnVillalovos deleted the jlvillal/659 branch July 14, 2025 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Guest Participation just erroring

2 participants