Fix expected return class

This commit is contained in:
Joshua Ramon Enslin 2023-10-19 17:10:21 +02:00
parent d2dd24baee
commit 06b2d13c6f
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -26,9 +26,9 @@ enum MDMeasurementType implements JsonSerializable {
*
* @param string $input Input to get a value from.
*
* @return MDCopyrightCollective
* @return MDMeasurementType
*/
public static function fromString(string $input):MDCopyrightCollective {
public static function fromString(string $input):MDMeasurementType {
return match($input) {
'length' => self::length,
@ -50,9 +50,9 @@ enum MDMeasurementType implements JsonSerializable {
*
* @param integer $input Input to get a value from.
*
* @return MDCopyrightCollective
* @return MDMeasurementType
*/
public static function fromInt(int $input):MDCopyrightCollective {
public static function fromInt(int $input):MDMeasurementType {
return match($input) {
1 => self::length,