← All changes
|
libraries/vendor/PhpSpreadsheet/Style/ConditionalFormatting/Wizard/CellValue.php
+2
-3
3.3.3
→
3.4
View file →
| @@ -69,9 +69,9 @@ | ||
| 69 | 69 | if (is_string($operand)) { |
| 70 | 70 | $operand = $this->validateOperand($operand, $operandValueType); |
| 71 | 71 | } |
| 72 | 72 | |
| 73 | - $this->operand[$index] = $operand; //* @phpstan-ignore-line | |
| 73 | + $this->operand[$index] = $operand; //* @phpstan-ignore assign.propertyType (I don't know what is needed) | |
| 74 | 74 | $this->operandValueType[$index] = $operandValueType; |
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | /** |
| @@ -196,10 +196,9 @@ | ||
| 196 | 196 | { |
| 197 | 197 | $retVal = true; |
| 198 | 198 | $array = array_merge(array_keys(self::SINGLE_OPERATORS), array_keys(self::RANGE_OPERATORS)); |
| 199 | 199 | foreach ($array as $value) { |
| 200 | - // PhpStan is correct about next statement, but we want to test anyhow | |
| 201 | - $retVal = $retVal && in_array($value, self::MAGIC_OPERATIONS, true); // @phpstan-ignore-line | |
| 200 | + $retVal = $retVal && in_array($value, self::MAGIC_OPERATIONS, true); | |
| 202 | 201 | } |
| 203 | 202 | |
| 204 | 203 | return $retVal; |
| 205 | 204 | } |