diff --git a/public/modules/custom/helfi_rekry_content/src/Entity/JobListing.php b/public/modules/custom/helfi_rekry_content/src/Entity/JobListing.php index e62213a3..b2aeb10a 100644 --- a/public/modules/custom/helfi_rekry_content/src/Entity/JobListing.php +++ b/public/modules/custom/helfi_rekry_content/src/Entity/JobListing.php @@ -92,9 +92,9 @@ public function getFormattedStartTime(): string { /** @var \Drupal\Core\Datetime\DateFormatterInterface $date_formatter */ $date_formatter = \Drupal::service('date.formatter'); - // @phpstan-ignore-line - $publication_starts_datetime = !$this->get('field_publication_starts')->isEmpty() ? - $this->get('field_publication_starts')->date->getTimestamp() : $this->getCreatedTime(); + $publication_starts_datetime = !$this->get('field_publication_starts')->isEmpty() + ? $this->get('field_publication_starts')->date->getTimestamp() // @phpstan-ignore-line + : $this->getCreatedTime(); return $date_formatter->format($publication_starts_datetime, 'html_date'); }