mirror of
https://github.com/Karaka-Management/oms-News.git
synced 2026-02-18 09:28:41 +00:00
Fixing json serialization and reporter
This commit is contained in:
parent
a6827afdc5
commit
3c75662633
|
|
@ -414,11 +414,11 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable
|
||||||
|
|
||||||
public function __toString()
|
public function __toString()
|
||||||
{
|
{
|
||||||
return $this->jsonSerialize();
|
return json_encode($this->toArray());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function jsonSerialize()
|
public function jsonSerialize()
|
||||||
{
|
{
|
||||||
return json_encode($this->toArray());
|
return $this->toArray();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user