#12460 fixed deprecated in library phpchartjs

This commit is contained in:
Daniel Cebrian 2024-01-17 12:41:56 +01:00
parent bb2d908de7
commit 209b4b3e8b
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ trait JsonSerializable
/**
* @return array
*/
public function jsonSerialize()
public function jsonSerialize():mixed
{
return array_map(function ($value) {
if ($value instanceof JsonSerializableInterface) {

View File

@ -148,7 +148,7 @@ class Elements implements ArraySerializableInterface, JsonSerializable
/**
* @return array
*/
public function jsonSerialize()
public function jsonSerialize():mixed
{
return $this->getArrayCopy();
}