Skip to content

Commit 26f7108

Browse files
authored
Fix: allow array|string|null for ValidationResult::$fix to prevent TypeError (librenms#18457)
1 parent 95c6fd2 commit 26f7108

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LibreNMS/ValidationResult.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class ValidationResult
4848
* @param int $status The status of this result FAILURE, WARNING, or SUCCESS
4949
* @param string|null $fix a suggested fix to highlight for the user
5050
*/
51-
public function __construct(private string $message, private int $status, private ?string $fix = null)
51+
public function __construct(private string $message, private int $status, private string|array|null $fix = null)
5252
{
5353
}
5454

0 commit comments

Comments
 (0)