mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
MDL-76362 qtype_numerical: Fix bug in phpdoc
This commit is contained in:
parent
771b49c9ac
commit
e76b1bcd5e
@ -647,10 +647,10 @@ class qtype_numerical_answer_processor {
|
||||
* default unit, by using the given unit multiplier.
|
||||
*
|
||||
* @param string $response a value, optionally with a unit.
|
||||
* @return array(numeric, sting) the value with the unit stripped, and normalised
|
||||
* @return array(numeric, string, multiplier) the value with the unit stripped, and normalised
|
||||
* by the unit multiplier, if any, and the unit string, for reference.
|
||||
*/
|
||||
public function apply_units($response, $separateunit = null) {
|
||||
public function apply_units($response, $separateunit = null): array {
|
||||
if ($response === null || trim($response) === '') {
|
||||
return [null, null, null];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user