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

php 8.x support #260

Open
mokraemer opened this issue Mar 4, 2024 · 7 comments
Open

php 8.x support #260

mokraemer opened this issue Mar 4, 2024 · 7 comments

Comments

@mokraemer
Copy link

is it planned to support newer php versions?

At the moment deprecated warnings makes it phpLDAPadmin unusable:

Creation of dynamic property page::$index is deprecated
PHP Debug Backtrace
File	/usr/share/phpldapadmin/lib/functions.php (192)
 	Function	error (a:5:{i:0;s:88:"Unrecognized error number: 8192: Cr...)

In a first step deprecated warnings should not interfer the execution, and a declaration:
#[AllowDynamicProperties]
should be added, In the next step this should totally be avoided for further php versions.

@williamdes
Copy link

Already supported in Debian by my patch. But not yet available in normal releases. Patch is #202

@mokraemer
Copy link
Author

Thanks william. I guess it will not hold for php 9. But it is good for php 8.2,8.3

@williamdes
Copy link

Yeah, but anyway I expect that before php 9 I will have done a new patch for the variables. It's not very complicated but takes time

@andypost
Copy link

andypost commented Mar 5, 2024

Maybe there's automation tools for that a-la rector?

@williamdes
Copy link

In fact I wanted to setup phpstan to detect all variables that are not assigned and fix this bug. For this task phpstan seems to be the easiest path.

@mokraemer
Copy link
Author

If you want to make php projects more reliable, you can use phan, but this will give you much more potential problems.

@andypost
Copy link

andypost commented Mar 6, 2024

Usually phpstan level 2 with exceptions is enough

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