Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Commit

Permalink
Fixed PHP 8 jsonSerialize error; refs #48876
Browse files Browse the repository at this point in the history
  • Loading branch information
denys202 committed Dec 6, 2024
1 parent 704f71e commit 715f98a
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/API/Response/Object/AbstractObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ abstract class AbstractObject implements \JsonSerializable
*/
abstract public function build($json);

#[\ReturnTypeWillChange]
public function jsonSerialize()
{
return get_object_vars($this);
Expand Down
1 change: 1 addition & 0 deletions src/Model/EditConfigurationModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,7 @@ public function setTriggerGtmEvents($trigger_gtm_events)
return $this;
}

#[\ReturnTypeWillChange]
public function jsonSerialize()
{
return get_object_vars($this);
Expand Down
1 change: 1 addition & 0 deletions src/Model/Integration/ConsentModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ public function setSecurityStorage($securityStorage)
return $this;
}

#[\ReturnTypeWillChange]
public function jsonSerialize()
{
return get_object_vars($this);
Expand Down
1 change: 1 addition & 0 deletions src/Model/Integration/IntegrationModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ public function setTriggerGtmEvents($triggerGtmEvents)
return $this;
}

#[\ReturnTypeWillChange]
public function jsonSerialize()
{
return get_object_vars($this);
Expand Down
1 change: 1 addition & 0 deletions src/Model/Integration/StepModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ public function toArray()
];
}

#[\ReturnTypeWillChange]
public function jsonSerialize()
{
return get_object_vars($this);
Expand Down
1 change: 1 addition & 0 deletions src/Model/ListConfigurationModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ public function setIdLanguage($idLanguage)
return $this;
}

#[\ReturnTypeWillChange]
public function jsonSerialize()
{
return get_object_vars($this);
Expand Down
1 change: 1 addition & 0 deletions src/Model/Response/FrontResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public function setSuccess($success)
return $this;
}

#[\ReturnTypeWillChange]
public function jsonSerialize()
{
return get_object_vars($this);
Expand Down

0 comments on commit 715f98a

Please sign in to comment.