plenta / contao-formrecipient

formrecipient
2 stars 4 forks source link

create_function is removed in php8 #5

Closed d0p3fish closed 1 year ago

d0p3fish commented 2 years ago

6

Contao Version 4.13.10 PHP 8.1

Hi, this repository is making use of "create_function", which is marked deprecated since php7.2 and removed since php8.0.

Can you please remove "create_function" call to make the plugin compatible to php8.

[2022-10-20T12:36:21.108955+02:00] request.CRITICAL: Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\UndefinedFunctionError: "Attempted to call function "create_function" from namespace "Contao". Did you mean to call "\safe\create_function"?" at /CONTAO4/vendor/scyfel/contao-formrecipient/forms/FormRecipient.php line 24 {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\UndefinedFunctionError(code: 0): Attempted to call function \"create_function\" from namespace \"Contao\".\nDid you mean to call \"\\safe\\create_function\"? at /CONTAO4/vendor/scyfel/contao-formrecipient/forms/FormRecipient.php:24)"} []

christianbarkowsky commented 1 year ago

thx @d0p3fish