Cell row should be an int
This commit is contained in:
parent
1626f5931b
commit
575ff5509c
|
|
@ -30,7 +30,7 @@ abstract class Coordinate
|
||||||
public static function coordinateFromString($cellAddress)
|
public static function coordinateFromString($cellAddress)
|
||||||
{
|
{
|
||||||
if (preg_match('/^([$]?[A-Z]{1,3})([$]?\\d{1,7})$/', $cellAddress, $matches)) {
|
if (preg_match('/^([$]?[A-Z]{1,3})([$]?\\d{1,7})$/', $cellAddress, $matches)) {
|
||||||
return [$matches[1], $matches[2]];
|
return [$matches[1], (int) $matches[2]];
|
||||||
} elseif (self::coordinateIsRange($cellAddress)) {
|
} elseif (self::coordinateIsRange($cellAddress)) {
|
||||||
throw new Exception('Cell coordinate string can not be a range of cells');
|
throw new Exception('Cell coordinate string can not be a range of cells');
|
||||||
} elseif ($cellAddress == '') {
|
} elseif ($cellAddress == '') {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue