Skip to content

Commit fca2184

Browse files
committed
Fix Phpstan Problems
1 parent b2d885f commit fca2184

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PhpSpreadsheet/Calculation/Calculation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2438,7 +2438,7 @@ private function processTokenStack(mixed $tokens, ?string $cellID = null, ?Cell
24382438
$a = $argCount - $i - 1;
24392439
if (
24402440
($passByReference)
2441-
&& (isset($phpSpreadsheetFunctions[$functionName]['passByReference'][$a]))
2441+
&& (isset($phpSpreadsheetFunctions[$functionName]['passByReference'][$a])) // @phpstan-ignore-line
24422442
&& ($phpSpreadsheetFunctions[$functionName]['passByReference'][$a])
24432443
) {
24442444
/** @var array $arg */
@@ -2537,7 +2537,7 @@ private function processTokenStack(mixed $tokens, ?string $cellID = null, ?Cell
25372537
if (isset($storeKey)) {
25382538
$branchStore[$storeKey] = $token;
25392539
}
2540-
} elseif (preg_match('/^' . self::CALCULATION_REGEXP_DEFINEDNAME . '$/miu', $token, $matches)) {
2540+
} elseif (preg_match('/^' . self::CALCULATION_REGEXP_DEFINEDNAME . '$/miu', $token, $matches)) { // @phpstan-ignore-line
25412541
// if the token is a named range or formula, evaluate it and push the result onto the stack
25422542
$definedName = $matches[6];
25432543
if (str_starts_with($definedName, '_xleta')) {

0 commit comments

Comments
 (0)