Skip to content

Commit

Permalink
UHF-10619: phpstan fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rpnykanen committed Nov 4, 2024
1 parent 7d3a8b5 commit 160e52c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down

0 comments on commit 160e52c

Please sign in to comment.