فهرست منبع

Add type-hint to getValues method

Alan Lam 7 سال پیش
والد
کامیت
4724040d58
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      engine/test.php

+ 1 - 1
engine/test.php

@@ -400,7 +400,7 @@ class Test extends Model {
 		return User::get($this->verifier_id);
 	}
 
-	public function getValues($as_assoc_array = false) {
+	public function getValues(bool $as_assoc_array = false) {
 		$rows = TestValue::query(["test_id" => $this->id]);
 
 		if($as_assoc_array) {