You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Following Code produces the error:
"PhpOffice\PhpSpreadsheet\Writer\Xls\Parser::convertFunction(): Argument #2 ($num_args) must be of type int, string given"
Thank you for the sample file. There have been recent changes to Writer/Xls/Parser, but I have confirmed that this problem existed before those changes. What appears to be happening is that Parser is treating FALSE (or TRUE) as a function rather than a constant, which is nominally a harmless difference. However, since it wasn't a function, when it tries to parse the arguments, the field in which it expects the argument count is null-string rather than 0. Expect a fix within a day or two.
oleibman
added a commit
to oleibman/PhpSpreadsheet
that referenced
this issue
Jan 29, 2025
FixPHPOffice#4331. Parser treats TRUE/FALSE as functions rather than constants, which is nominally harmless, but it then expects an argument count of 0 and instead sees null-string. Changed to recognize this situation and leave TRUE/FALSE/TRUE()/FALSE() unchanged.
Tested with Version 3.9.0
The Following Code produces the error:
"PhpOffice\PhpSpreadsheet\Writer\Xls\Parser::convertFunction(): Argument #2 ($num_args) must be of type int, string given"
Code:
File (German XLS File with German Function Name 'SVERWEIS' for 'VSLOOKUP':
VSLOOKUP_example_2003.xls
The text was updated successfully, but these errors were encountered: