瀏覽代碼

Fix parameter types

Alan Lam 5 年之前
父節點
當前提交
f18da8c16a
共有 1 個文件被更改,包括 4 次插入 和 4 次删除
  1. 4 4
      engine/util.php

+ 4 - 4
engine/util.php

@@ -3,10 +3,10 @@
 class Util {
 
 	/**
-	 * @param string $gender
+	 * @param string|null $gender
 	 * @return string
 	 */
-	public static function getGenderText(string $gender): string {
+	public static function getGenderText(?string $gender): string {
 		switch($gender) {
 			case "M": return MALE;
 			case "F": return FEMALE;
@@ -15,10 +15,10 @@ class Util {
 	}
 
 	/**
-	 * @param string $boolean
+	 * @param string|null $boolean
 	 * @return string
 	 */
-	public static function getBooleanText(string $boolean): string {
+	public static function getBooleanText(?string $boolean): string {
 		switch($boolean) {
 			case "Y": return YES;
 			case "N": return NO;