Explorar o código

Add type-hint to getValues method

Alan Lam %!s(int64=7) %!d(string=hai) anos
pai
achega
4724040d58
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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) {