Closed rk-mxp closed 1 year ago
@Barakur Thank you very much for the detailed error report! I'll have a look at it.
This should already be solved in the current main branch by casting the width to a string:
The !empty
approach would not be working for zero width, because empty('0')
evaluates to true
. I hope I'll soon have a release for this.
Describe the bug When using the ColumnViewHelper without width the following PHP error occurs with PHP 8:
Environment TYPO3 version(s): 11.5 PHP Version: 8.2 pdfviewhelpers version: 2.5.0
Steps to reproduce Add a ColumnViewHelper to the PDF like this:
Expected behavior The columns are rendered
Possible solution The problem is the
if
in theinitialize
function of theColumnViewHelper
:Replacing
strlen
with!empty
as test function should fix the problem