Commit a2436ebb authored by johnwebdev's avatar johnwebdev
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 63d6822c
......@@ -34,6 +34,7 @@ class DescriptionSuggestion extends SimpleSuggestion implements SuggestionDescri
/**
* {@inheritdoc}
*/
#[\ReturnTypeWillChange]
public function jsonSerialize() {
return parent::jsonSerialize() + [
......
......@@ -70,6 +70,7 @@ class EntitySuggestion extends DescriptionSuggestion {
/**
* {@inheritdoc}
*/
#[\ReturnTypeWillChange]
public function jsonSerialize() {
return parent::jsonSerialize() + [
'entity_uuid' => $this->entityUuid,
......
......@@ -76,6 +76,7 @@ class SimpleSuggestion implements SuggestionInterface {
/**
* {@inheritdoc}
*/
#[\ReturnTypeWillChange]
public function jsonSerialize() {
return [
'label' => $this->getLabel(),
......
......@@ -47,6 +47,7 @@ class SuggestionCollection implements \JsonSerializable {
/**
* {@inheritdoc}
*/
#[\ReturnTypeWillChange]
public function jsonSerialize() {
return [
'suggestions' => $this->suggestions,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment