Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes after consultation_user_terms added #21

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/Consultations/CommonConsultationVariables.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,14 @@
*/
public static function variablesFromEvent(EventWrapper $event): array
{
$executedAt = $event->getConsultationUserTerm() ? $event->getConsultationUserTerm()->executed_at : $event->getConsultationTerm()->executed_at;

Check failure on line 34 in src/Consultations/CommonConsultationVariables.php

View workflow job for this annotation

GitHub Actions / php82-laravel-latest-phpstan-postgres

Call to an undefined method EscolaLms\Templates\Events\EventWrapper::getConsultationTerm().

Check failure on line 34 in src/Consultations/CommonConsultationVariables.php

View workflow job for this annotation

GitHub Actions / php82-laravel-latest-phpstan-postgres

Call to an undefined method EscolaLms\Templates\Events\EventWrapper::getConsultationUserTerm().

Check failure on line 34 in src/Consultations/CommonConsultationVariables.php

View workflow job for this annotation

GitHub Actions / php82-laravel-latest-phpstan-postgres

Call to an undefined method EscolaLms\Templates\Events\EventWrapper::getConsultationUserTerm().
return array_merge(parent::variablesFromEvent($event), [
// @phpstan-ignore-next-line
self::VAR_USER_NAME => $event->getUser()->name,
// @phpstan-ignore-next-line
self::VAR_CONSULTATION_TITLE => $event->getConsultationTerm()->consultation->name,
// @phpstan-ignore-next-line
self::VAR_CONSULTATION_PROPOSED_TERM => Carbon::make($event->getConsultationTerm()->executed_at)
self::VAR_CONSULTATION_PROPOSED_TERM => Carbon::make($executedAt)

Check failure on line 41 in src/Consultations/CommonConsultationVariables.php

View workflow job for this annotation

GitHub Actions / php82-laravel-latest-phpstan-postgres

No error to ignore is reported on line 41.
// @phpstan-ignore-next-line
->setTimezone($event->getUser()->current_timezone)
->format('Y-m-d H:i:s'),
Expand Down
Loading