Files
PhpSpreadsheet/tests
Kevin Verschaeve 4971801a90 fix: Allow to read data from a table located in a different sheet (#3659)
* fix: Allow to read data from a table located in a different sheet

* Add Test Case, Correct Calculation

Calculate correct result, at least for calculations with a single answer. For an array of answers, result will be similar to other functions which return an array (dynamic arrays not yet fully supported).

* Rename test class

* Allow Appropriate Use of Table as DefinedName in Calculations

See Issue3569Test, which behaves like Excel.

* Remove Dead Code

Scrutinizer is correct here.

* Memory Leak

Worksheet points to Table, Table points back to Worksheet. Circular reference prevents garbage collection. Remove Table collection in Worksheet at destruct time to avoid this problem.

* PhpUnit10 Failure

Avoiding memory leak triggered segfault in Phpunit 10. Research and fix later.

* Add toString to StructuredReference

Absence of such a method seems to cause problems for untaken IF branches in Calculation.

* Remove Dead Assignments

Correctly detected by Scrutinizer.

---------

Co-authored-by: Kevin Verschaeve <kevin.verschaeve@exotec.com>
Co-authored-by: oleibman <10341515+oleibman@users.noreply.github.com>
2023-08-19 06:41:57 -07:00
..