astroid-framework icon indicating copy to clipboard operation
astroid-framework copied to clipboard

Inquiry about Astroid Framework Version 3.0.7 Compatibility with PHP 8

Open salahjaafar opened this issue 1 year ago • 4 comments

Hello Astroid Team,

I hope you are doing well. I am currently using Astroid Framework Version 3.0.7 in a Joomla project with php 7.4, and I was wondering if this version is only compatible with PHP 8.

Furthermore, I have encountered the following error while using the administrative part:

Fatal error: Default value for property of type Astroid\mixed may not be null. Use the nullable type ?Astroid\mixed to allow null default value in /opt/lampp/htdocs/joomla/libraries/astroid/framework/library/astroid/Element.php on line 18

Is this error related to an incompatibility with PHP 8, or could it be related to something else?

Thank you in advance for your assistance and for the fantastic work you are doing with Astroid Framework!

Best regards, Salah JAAFAR

salahjaafar avatar Dec 12 '23 12:12 salahjaafar

Please update to PHP 8 to fix this issue

sonvnn avatar Dec 12 '23 12:12 sonvnn

Yes, it depends on migrating all PHP projects to work on the same server.

salahjaafar avatar Dec 12 '23 12:12 salahjaafar

Php7 is end of life. You have to update it first before update your Joomla. Joomla 5 is not support Php7 even php 8.0 will be drop support in next year. You should prepare for it.

I recommend you delete all of extensions which did not update to php 8.1. Because they are not safe. Your website will be hacked because one of them.

Best regards, Sonny

sonvnn avatar Dec 12 '23 13:12 sonvnn

Certainly, it is imperative to engage in the migration process. While this may pose some challenges given the simultaneity of several ongoing projects, this undertaking will become an unavoidable necessity. @sonvnn i would like to express my gratitude for all your efforts.

salahjaafar avatar Dec 12 '23 21:12 salahjaafar