Skip to content

Commit

Permalink
fix phpstan warnings for ticketbundle
Browse files Browse the repository at this point in the history
  • Loading branch information
rserry committed Jan 26, 2024
1 parent c0f40cf commit a013157
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions module/TicketBundle/Controller/TicketController.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ public function eventAction()
$person = $this->getPersonEntity();

$formSpecification = $this->getFormEntity($event->getForm());
$infoForm = null;
$entries = null;
if ($formSpecification !== null) {
$now = new DateTime();
if ($now < $formSpecification->getStartDate() || $now > $formSpecification->getEndDate() || !$formSpecification->isActive()) {
Expand Down
1 change: 1 addition & 0 deletions module/TicketBundle/Hydrator/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ protected function doHydrate(array $data, $object = null)
$calendarEvent = null;
}

$form = null;
if ($data['form'] !== '') {
$form = $this->getEntityManager()
->getRepository('FormBundle\Entity\Node\Form')
Expand Down

0 comments on commit a013157

Please sign in to comment.