I tried searching a solution for my problem, but I can't find anything. My problem is that doxygen for php doesn't handle default parameters if they are an array:
Code:
/**
* @brief convert rgb values to hexa decimal, and return array.
* @param int $red : 0 - 255
* @param int $green : 0 - 255
* @param int $blue : 0 - 255
* @param array $default
* @return array
*/
public static function rgb2hex(
int $red = 0,
int $green = 0,
int $blue = 0,
array $default = ['r' => 0, 'g' => 0, 'b' => 0]
) : array {
...
return [
'r' => $r,
'g' => $g,
'b' => $b
];
}
Rendering:
Screen sample: https://i.stack.imgur.com/bJhiu.png