Use ->toString() over ->name in json serialization of MDGender,

MDLicense

This is important for backwards compatibility
This commit is contained in:
Joshua Ramon Enslin 2024-07-30 00:51:04 +02:00
parent 47763d1998
commit be2da00759
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE
2 changed files with 2 additions and 2 deletions

View File

@ -170,7 +170,7 @@ enum MDGender implements MDValueEnumInterface, JsonSerializable {
*/
public function jsonSerialize():string {
return $this->name;
return $this->toString();
}
}

View File

@ -231,7 +231,7 @@ enum MDLicense implements MDValueEnumInterface, JsonSerializable {
*/
public function jsonSerialize():string {
return $this->name;
return $this->toString();
}
}