Fatal error: Cannot use ::class with dynamic class name in /vendor/laminas/laminas-mail/src/Message.php on line 394

Viewed 103

I am trying to upgrade Magento 2.4.3 Adobe Cloud version to 2.4.4 and I was successfully update the composer.json with necessary changes. Also I was able to run the di:compile command successfully. Now when I am trying to access my website I am getting this error

Fatal error: Cannot use ::class with dynamic class name in /var/www/html/vendor/laminas/laminas-mail/src/Message.php on line 394

Does anyone faced same issue?

1 Answers

Try to add php version, for example, php8.1 bin/magento s:s:d -f or php8.1 bin/magento s:d:c

Related