Php 8.3 Problem - Add Casts to RowColumnInformation (#3641)

Some tests were failing with Php nightly. Row values, which were expected to be int, were now being returned as string. Adding a couple of casts eliminated the problem in Php 8.3 without adverse effects in other releases.
This commit is contained in:
oleibman
2023-07-16 06:43:03 -07:00
committed by GitHub
parent 8fd727dcca
commit 3631777bee
@@ -159,8 +159,8 @@ class RowColumnInformation
[, $cellAddress] = Worksheet::extractSheetTitle($cellAddress, true);
if (strpos($cellAddress, ':') !== false) {
[$startAddress, $endAddress] = explode(':', $cellAddress);
$startAddress = (string) preg_replace('/\D/', '', $startAddress);
$endAddress = (string) preg_replace('/\D/', '', $endAddress);
$startAddress = (int) (string) preg_replace('/\D/', '', $startAddress);
$endAddress = (int) (string) preg_replace('/\D/', '', $endAddress);
return array_map(
function ($value) {