Commit fcb5a582 authored by John's avatar John
Browse files

Issue #3262401 by Dom., Berdir: Deprecated function : Return type of...

Issue #3262401 by Dom., Berdir: Deprecated function : Return type of Drupal\linkit\Suggestion\SimpleSuggestion::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize()
parent b4e292d2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -34,6 +34,7 @@ class DescriptionSuggestion extends SimpleSuggestion implements SuggestionDescri
  /**
   * {@inheritdoc}
   */
  #[\ReturnTypeWillChange]
  public function jsonSerialize() {

    return parent::jsonSerialize() + [
+1 −0
Original line number Diff line number Diff line
@@ -70,6 +70,7 @@ class EntitySuggestion extends DescriptionSuggestion {
  /**
   * {@inheritdoc}
   */
  #[\ReturnTypeWillChange]
  public function jsonSerialize() {
    return parent::jsonSerialize() + [
      'entity_uuid' => $this->entityUuid,
+1 −0
Original line number Diff line number Diff line
@@ -76,6 +76,7 @@ class SimpleSuggestion implements SuggestionInterface {
  /**
   * {@inheritdoc}
   */
  #[\ReturnTypeWillChange]
  public function jsonSerialize() {
    return [
      'label' => $this->getLabel(),
+1 −0
Original line number Diff line number Diff line
@@ -47,6 +47,7 @@ class SuggestionCollection implements \JsonSerializable {
  /**
   * {@inheritdoc}
   */
  #[\ReturnTypeWillChange]
  public function jsonSerialize() {
    return [
      'suggestions' => $this->suggestions,