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

MDLicense

This is important for backwards compatibility
This commit is contained in:
jrenslin committed 2024-07-30 00:51:04 +02:00
1 parent 47763d1998
commit be2da00759
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -170,7 +170,7 @@ public function getTledName(MDTlLoader $tlLoader):string {
*/
public function jsonSerialize():string {
return $this->name;
return $this->toString();
}
}
+1 -1
View File
@@ -231,7 +231,7 @@ public function getTledName(MDTlLoader $tlLoader):string {
*/
public function jsonSerialize():string {
return $this->name;
return $this->toString();
}
}