Fix type issues in PHPDoc comments

This commit is contained in:
Joshua Ramon Enslin 2023-05-07 23:37:57 +02:00
parent a437f1b57b
commit c3d4f3f03a
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -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"),
};
}