Using v3.0.1
In src/FastExcelReader/Excel.php, inside the _extractColor function, there is the following code:
if (!isset(self::INDEXED_COLORS[$indexed])) {
return '#' . substr(self::INDEXED_COLORS[$indexed], 2);
}
It seems the condition is inverted.
When self::INDEXED_COLORS[$indexed] is not set, the code still tries to access it, which leads to a PHP array access warning/error.
I believe it should probably be:
if (isset(self::INDEXED_COLORS[$indexed])) {
return '#' . substr(self::INDEXED_COLORS[$indexed], 2);
}
Using v3.0.1
In
src/FastExcelReader/Excel.php, inside the_extractColorfunction, there is the following code:It seems the condition is inverted.
When
self::INDEXED_COLORS[$indexed]is not set, the code still tries to access it, which leads to a PHP array access warning/error.I believe it should probably be: