writeCellFormula, Cell , Coordinate 関係でエラー落ちする場合
どうやら、PhpSpreadsheetさんは式を解決してからファイルを保存してくれるらしい。
しかし、複雑な式を書いていると無限ループになったり、うまく計算できず落ちてしまうっぽい
Excel上でならうまく処理してくれる場合でも、だ。
そういう時(XlsxWriterに対して)は
$writer->setPreCalculateFormulas(false);
を加えて事前計算処理をスキップさせる事ができるようだ。
https://phpspreadsheet.readthedocs.io/en/latest/topics/reading-and-writing-to-file/
ここを読んでいて見つけた。
次同じようなハマり方をした同志の為になればと。