From 160e52cd41ab95d0849fb762b3aa130a8b0b2b83 Mon Sep 17 00:00:00 2001 From: rpnykanen Date: Mon, 4 Nov 2024 16:23:50 +0200 Subject: [PATCH] UHF-10619: phpstan fix --- .../custom/helfi_rekry_content/src/Entity/JobListing.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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'); }