You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Potential fix :
public function jsonSerialize(): mixed
{
return [
'id' => $this->id,
'name' => $this->name
];
}
Error Message:
"Return type of Dot\User\Entity\RoleEntity::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice"
The text was updated successfully, but these errors were encountered:
Potential fix :
public function jsonSerialize(): mixed
{
return [
'id' => $this->id,
'name' => $this->name
];
}
Error Message:
"Return type of Dot\User\Entity\RoleEntity::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice"
The text was updated successfully, but these errors were encountered: