Skip to content

Commit 80d4bda

Browse files
committed
fix(forms): update addError method parameter documentation for clarity
1 parent 3f7b57d commit 80d4bda

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Glpi/Form/ValidationResult.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ public function getErrors(): array
8484
/**
8585
* Add an error to the list
8686
*
87-
* @param array $error Error details
87+
* @param Question $question The question associated with the error
88+
* @param string $message The error message
8889
* @return void
8990
*/
9091
public function addError(Question $question, string $message): void

0 commit comments

Comments
 (0)