@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3final class PhabricatorIntExportField
4 extends PhabricatorExportField {
5
6 /**
7 * @return int|null
8 */
9 public function getNaturalValue($value) {
10 if ($value === null) {
11 return $value;
12 }
13
14 return (int)$value;
15 }
16
17 /**
18 * @phutil-external-symbol class PHPExcel_Cell_DataType
19 */
20 public function formatPHPExcelCell($cell, $style) {
21 $cell->setDataType(PHPExcel_Cell_DataType::TYPE_NUMERIC);
22 }
23
24 public function getCharacterWidth() {
25 return 8;
26 }
27
28}