mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-08-31 12:40:00 +00:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user