Fix type issues in PHPDoc comments
This commit is contained in:
parent
a437f1b57b
commit
c3d4f3f03a
@ -40,7 +40,7 @@ enum MDTagRelationType implements MDValueEnumInterface, JsonSerializable {
|
||||
/**
|
||||
* Returns a value of this type based on an integer.
|
||||
*
|
||||
* @param string $input Input to get a value from.
|
||||
* @param integer $input Input to get a value from.
|
||||
*
|
||||
* @return MDTagRelationType
|
||||
*/
|
||||
@ -88,7 +88,7 @@ enum MDTagRelationType implements MDValueEnumInterface, JsonSerializable {
|
||||
/**
|
||||
* Lists all available names.
|
||||
*
|
||||
* @return array<string>
|
||||
* @return array<integer>
|
||||
*/
|
||||
public static function caseInts():array {
|
||||
|
||||
@ -110,12 +110,12 @@ enum MDTagRelationType implements MDValueEnumInterface, JsonSerializable {
|
||||
*/
|
||||
public function toInt():int {
|
||||
|
||||
return match(self) {
|
||||
return match($this) {
|
||||
self::tag => 0,
|
||||
self::object_type => 1,
|
||||
self::material => 2,
|
||||
self::technique => 3,
|
||||
default => throw new MDpageParameterNotFromListException("Unknown tag relation type"),
|
||||
// default => throw new MDpageParameterNotFromListException("Unknown tag relation type"),
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user