Use ->toString() over ->name in json serialization of MDGender,
MDLicense This is important for backwards compatibility
This commit is contained in:
parent
47763d1998
commit
be2da00759
@ -170,7 +170,7 @@ enum MDGender implements MDValueEnumInterface, JsonSerializable {
|
||||
*/
|
||||
public function jsonSerialize():string {
|
||||
|
||||
return $this->name;
|
||||
return $this->toString();
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -231,7 +231,7 @@ enum MDLicense implements MDValueEnumInterface, JsonSerializable {
|
||||
*/
|
||||
public function jsonSerialize():string {
|
||||
|
||||
return $this->name;
|
||||
return $this->toString();
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user