direct_mail icon indicating copy to clipboard operation
direct_mail copied to clipboard

PHP 8.1 incompatible syntax in RecipientListController

Open smichaelsen opened this issue 6 months ago • 0 comments

In RecipientListController.php:

protected array $allowedTables = [DmailRecipientEnum::TtAddress->value, DmailRecipientEnum::FeUsers->value],

This line works since PHP 8.2

Here is a minimal example, that shows that this kind of access doesn't work in PHP 8.1: https://onlinephp.io/c/a548f

Since 8.1 is a supported version of TYPO3 v12, I suggest to revert to just using the strings at that place.

smichaelsen avatar Aug 06 '24 13:08 smichaelsen