Pārlūkot izejas kodu

Add type-hint to getValues method

Alan Lam 7 gadi atpakaļ
vecāks
revīzija
4724040d58
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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) {