Skip to content

Commit

Permalink
All places
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislav-janu committed Oct 27, 2023
1 parent c93483b commit 16bd915
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Endpoints/AbstractRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public function send()

abstract public function toArray(): array;

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

#[\ReturnTypeWillChange]
public function jsonSerialize(): array
{
return $this->removeEmptyValues($this->toArray());
Expand Down
1 change: 1 addition & 0 deletions src/Models/ContactListStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public function toArray(): array
];
}

#[\ReturnTypeWillChange]
public function jsonSerialize(): array
{
return $this->removeEmptyValues($this->toArray());
Expand Down
1 change: 1 addition & 0 deletions src/Models/Contactlist.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ public function toArray(): array
];
}

#[\ReturnTypeWillChange]
public function jsonSerialize(): array
{
return $this->removeEmptyValues($this->toArray());
Expand Down
1 change: 1 addition & 0 deletions src/Models/CustomFieldDefinition.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ public function toArray(): array
];
}

#[\ReturnTypeWillChange]
public function jsonSerialize(): array
{
return $this->removeEmptyValues($this->toArray());
Expand Down
1 change: 1 addition & 0 deletions src/Models/CustomFieldOption.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ public function toArray(): array
];
}

#[\ReturnTypeWillChange]
public function jsonSerialize(): array
{
return $this->removeEmptyValues($this->toArray());
Expand Down
1 change: 1 addition & 0 deletions src/Models/CustomFieldValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ public function toArray(): array
];
}

#[\ReturnTypeWillChange]
public function jsonSerialize(): array
{
return $this->removeEmptyValues($this->toArray());
Expand Down
1 change: 1 addition & 0 deletions src/Models/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public static function fromJSON(\stdClass $json): object
*/
abstract public function toArray(): array;

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

#[\ReturnTypeWillChange]
public function jsonSerialize(): array
{
return $this->removeEmptyValues($this->toArray());
Expand Down
1 change: 1 addition & 0 deletions tests/Mock/ModelMock.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public function toArray(): array
];
}

#[\ReturnTypeWillChange]
public function jsonSerialize(): array
{
return $this->removeEmptyValues($this->toArray());
Expand Down

0 comments on commit 16bd915

Please sign in to comment.