← All changes
|
libraries/vendor/PhpSpreadsheet/Calculation/LookupRef/Unique.php
+2
-2
3.3.1
→
3.4
View file →
| @@ -40,9 +40,9 @@ | ||
| 40 | 40 | // When not $byColumn, we count whole rows or values, not individual values |
| 41 | 41 | // so implode each row into a single string value |
| 42 | 42 | array_walk( |
| 43 | 43 | $lookupVector, |
| 44 | - //* @phpstan-ignore-next-line | |
| 44 | + // @phpstan-ignore argument.type (not sure what is needed) | |
| 45 | 45 | function (array &$value): void { |
| 46 | 46 | $valuex = ''; |
| 47 | 47 | $separator = ''; |
| 48 | 48 | $numericIndicator = "\x01"; |
| @@ -79,9 +79,9 @@ | ||
| 79 | 79 | foreach ($value as &$stringValue) { |
| 80 | 80 | if (str_ends_with($stringValue, "\x01")) { |
| 81 | 81 | // x01 should only end a string which is otherwise a float or int, |
| 82 | 82 | // so phpstan is technically correct but what it fears should not happen. |
| 83 | - $stringValue = 0 + substr($stringValue, 0, -1); //@phpstan-ignore-line | |
| 83 | + $stringValue = 0 + substr($stringValue, 0, -1); //@phpstan-ignore binaryOp.invalid (stringValue might not be numeric?) | |
| 84 | 84 | } |
| 85 | 85 | } |
| 86 | 86 | } |
| 87 | 87 | ); |