This fails on PHP8. Passing by reference was introduced int this commit a587b0a966 [MAILPOET-3296]
a587b0a966