Here is a snippet of code:
/**
* Apply styles from array.
*
* <code>
* $spreadsheet->getActiveSheet()->getStyle('B2')->getFont()->applyFromArray(
* [
* 'name' => 'Arial',
* 'bold' => TRUE,
* 'italic' => FALSE,
* 'underline' => \PhpOffice\PhpSpreadsheet\Style\Font::UNDERLINE_DOUBLE,
* 'strikethrough' => FALSE,
* 'color' => [
* 'rgb' => '808080'
* ]
* ]
* );
* </code>
*
* @param array{name?: string, latin?: string, eastAsian?: string, complexScript?: string, bold?: bool, italic?: bool, superscript?: bool, subscript?: bool, underline?: bool|string, strikethrough?: bool, color?: string[], size?: ?int, chartColor?: ChartColor, scheme?: string, cap?: string, autoColor?: bool} $styleArray Array containing style information
*
* @return $this
*/
public function applyFromArray(array $styleArray): static
Expected behavior
public applyFromArray(name?: string, latin?: string, eastAsian?: string, complexScript?: string, bold?: bool, italic?: bool, superscript?: bool, subscript?: bool, underline?: bool|string, strikethrough?: bool, color?: string[], size?: ?int, chartColor?: ChartColor, scheme?: string, cap?: string, autoColor?: bool) : $this
Actual behavior
public applyFromArray(ChartColor, scheme?: string, cap?: string, autoColor?: bool} $styleArray) : $this
It seems like the part before ChartColor has been dropped. Maybe the result is too long? However, my testing indicates that, no matter how I rearrange and/or add things, the truncation is always at ChartColor.
Steps to reproduce the problem
- See below for links to project, affected source code, PhpDocumentor result.
Your environment
Windows 11
Here is a snippet of code:
Expected behavior
Actual behavior
It seems like the part before
ChartColorhas been dropped. Maybe the result is too long? However, my testing indicates that, no matter how I rearrange and/or add things, the truncation is always atChartColor.Steps to reproduce the problem
Your environment
Windows 11