Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any chance to use slim2 with php8.1? #3367

Open
tobiascapin opened this issue Jan 15, 2025 · 2 comments
Open

Is there any chance to use slim2 with php8.1? #3367

tobiascapin opened this issue Jan 15, 2025 · 2 comments

Comments

@tobiascapin
Copy link

Hi, this is not really an issue, just a question.

I need to update php version to php 8.1 in my webserver but I still have an old slim2 application.
Is there any way to use it with php8?

I tried to run it and I'm facing many fatal errors due to Return type of ArrayAccess mainly in slim\Slim\Middleware\Flash.php and slim\Slim\Helper\Set.php

Thank you for any idea (other than full app refactor :-D )

@akrabat
Copy link
Member

akrabat commented Jan 15, 2025

Roughly, you need to adopt it into your project and update the code appropriately.

@yeremi
Copy link

yeremi commented Jan 20, 2025

@tobiascapin , how about giving Rector a try?
Check the documentation https://getrector.com/documentation/composer-based-sets

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants