Unverified Commit c9ec5e43 authored by Lee Rowlands's avatar Lee Rowlands
Browse files

Issue #3240148 by alexpott: \Drupal\aggregator\Entity\Item::getLink() can...

Issue #3240148 by alexpott: \Drupal\aggregator\Entity\Item::getLink() can cause deprecations on PHP 8.1
parent 038cb48a
Loading
Loading
Loading
Loading
+1 −1
Changes for core/modules/aggregator/src/Entity/Item.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -151,7 +151,7 @@ public function setTitle($title) {
   * {@inheritdoc}
   */
  public function getLink() {
    return $this->get('link')->value;
    return $this->get('link')->value ?? '';
  }

  /**