jejik-mt940 icon indicating copy to clipboard operation
jejik-mt940 copied to clipboard

Setting a custom Statement class is broken in php 7.4 and upwards

Open faustimetal opened this issue 2 years ago • 0 comments

Because statementBody has a return type of Statement, you can't use a custom Statement class, because it will error saying that "CustomStatementClassX is not Statement".

This was fixed in a previous release, but reverted yesterday because it broke compability with EOL php version 7.3.

To enable it in all version you have to remove the return type completely. To reenable support for php 7.4 and upwards you have to reinstate the interface as the return type.

faustimetal avatar Sep 07 '22 07:09 faustimetal