Fix expected return class
This commit is contained in:
parent
d2dd24baee
commit
06b2d13c6f
|
@ -26,9 +26,9 @@ enum MDMeasurementType implements JsonSerializable {
|
||||||
*
|
*
|
||||||
* @param string $input Input to get a value from.
|
* @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) {
|
return match($input) {
|
||||||
'length' => self::length,
|
'length' => self::length,
|
||||||
|
@ -50,9 +50,9 @@ enum MDMeasurementType implements JsonSerializable {
|
||||||
*
|
*
|
||||||
* @param integer $input Input to get a value from.
|
* @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) {
|
return match($input) {
|
||||||
1 => self::length,
|
1 => self::length,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user