| @@ -531,9 +531,9 @@ | ||
| 531 | 531 | * @internal |
| 532 | 532 | */ |
| 533 | 533 | public function getCalculationEngineOrNull(): ?Calculation |
| 534 | 534 | { |
| 535 | - if (!isset($this->calculationEngine)) { //* @phpstan-ignore-line | |
| 535 | + if (!isset($this->calculationEngine)) { //* @phpstan-ignore isset.initializedProperty (may be null at destruct time) | |
| 536 | 536 | return null; |
| 537 | 537 | } |
| 538 | 538 | |
| 539 | 539 | return $this->calculationEngine; |
| @@ -1160,9 +1160,9 @@ | ||
| 1160 | 1160 | * @see \PhpOffice\PhpSpreadsheetBenchmarks\SpreadsheetCopyBenchmarkTest |
| 1161 | 1161 | */ |
| 1162 | 1162 | public function copy(): self |
| 1163 | 1163 | { |
| 1164 | - return unserialize(serialize($this)); //* @phpstan-ignore-line | |
| 1164 | + return unserialize(serialize($this)); //* @phpstan-ignore return.type (phpstan is wrong) | |
| 1165 | 1165 | } |
| 1166 | 1166 | |
| 1167 | 1167 | /** |
| 1168 | 1168 | * Implement PHP __clone to create a deep clone, not just a shallow copy. |