1

I downgraded magento to 2.4.2, now I get this error if I open the website:

Deprecated Functionality: Method ReflectionParameter::getClass() is deprecated in vendor/magento/framework/Code/Reader/ClassReader.php on line 34

1 Answer 1

2

You faced this issue because you are using PHP 8, Magento 2.4.2 does not support PHP 8 yet.

If you would like to continue with Magento 2.4.2, you have to switch PHP to version 7.

2
  • You are right! I changed to PHP Version 7.4.23 and now it works. thx!
    – Black
    Commented Oct 17, 2022 at 11:26
  • 1
    Glad to hear that. Cheers!
    – Tu Van
    Commented Oct 17, 2022 at 11:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.