We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9275d0c + ad56616 commit ee24f59Copy full SHA for ee24f59
src/PhpSpreadsheet/Collection/Cells.php
@@ -6,6 +6,7 @@
6
use PhpOffice\PhpSpreadsheet\Cell\Cell;
7
use PhpOffice\PhpSpreadsheet\Cell\Coordinate;
8
use PhpOffice\PhpSpreadsheet\Exception as PhpSpreadsheetException;
9
+use PhpOffice\PhpSpreadsheet\Settings;
10
use PhpOffice\PhpSpreadsheet\Worksheet\Worksheet;
11
use Psr\SimpleCache\CacheInterface;
12
@@ -298,7 +299,9 @@ public function getHighestRow($column = null)
298
299
*/
300
private function getUniqueID()
301
{
- return uniqid('phpspreadsheet.', true) . '.';
302
+ return Settings::getCache() instanceof Memory
303
+ ? random_bytes(7) . ':'
304
+ : uniqid('phpspreadsheet.', true) . '.';
305
}
306
307
/**
0 commit comments