Bug #4679
closedSaxon\XSLT30Processor::transformToString() expects exactly 1 parameter, 0 given
100%
Description
Reporte by user:
In the function exampleSimple1 given in the samples Xslt30Examples.php, the transformToString()
function is called without a parameter, while one can be provided. The documentation states:
The global context item may be supplied in the $context argument.
The context MAY be supplied, so its optional. However, when I run the function without a parameter, I get an error message stating that the function expects 1 parameter, and zero are given. Exactly the same issue applies when invoking the transformToFile() function without a parameter.
Updated by O'Neil Delpratt about 4 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
For the methods transformToString
, transformToFile
and transformToValue
I have added the logic to accept zero arguments.
Available in the next release of Saxon/C.
Made update in the documentation, which will be updated on website in the next release.
Updated by O'Neil Delpratt about 4 years ago
Also added PHPUnit test cases for this new logic of zero arguments added.
Updated by Peter Jan almost 4 years ago
PHPStorm stubs updated in https://github.com/JetBrains/phpstorm-stubs/pull/976
Updated by O'Neil Delpratt almost 3 years ago
- Status changed from Resolved to Closed
- Fixed in version set to 11.1
Bug fix patched in SaxonC 11.1 release
Please register to edit this issue