From 29e0a8a6e81d12a821ad4e670b5eca38f1aba782 Mon Sep 17 00:00:00 2001 From: MarkBaker Date: Mon, 16 Nov 2020 21:09:21 +0100 Subject: [PATCH] Revert --- src/PhpSpreadsheet/Cell/Coordinate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PhpSpreadsheet/Cell/Coordinate.php b/src/PhpSpreadsheet/Cell/Coordinate.php index 7ceec156..d2bc6e0a 100644 --- a/src/PhpSpreadsheet/Cell/Coordinate.php +++ b/src/PhpSpreadsheet/Cell/Coordinate.php @@ -30,7 +30,7 @@ abstract class Coordinate public static function coordinateFromString($cellAddress) { if (preg_match('/^([$]?[A-Z]{1,3})([$]?\\d{1,7})$/', $cellAddress, $matches)) { - return [$matches[1], (int) $matches[2]]; + return [$matches[1], $matches[2]]; } elseif (self::coordinateIsRange($cellAddress)) { throw new Exception('Cell coordinate string can not be a range of cells'); } elseif ($cellAddress == '') {