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

Don't use features only available since PHP 7.3 #126

Closed
yhabteab opened this issue Sep 25, 2023 · 4 comments · Fixed by #232
Closed

Don't use features only available since PHP 7.3 #126

yhabteab opened this issue Sep 25, 2023 · 4 comments · Fixed by #232
Assignees

Comments

@yhabteab
Copy link
Member

I noticed in several places where array_key_last() is used, which is available since PHP 7.3.

$key = array_key_last($this->options);

$key = array_key_last($this->options);

$newPosition = (int) array_key_last($escalations) + 1;

@yhabteab yhabteab changed the title Don't use features only available sind PHP 7.3 Don't use features only available since PHP 7.3 Sep 25, 2023
@nilmerg
Copy link
Member

nilmerg commented Sep 26, 2023

Or we consider changing the minimum requirement. To my knowledge, no distribution we support still uses PHP 7.2

@Al2Klimov
Copy link
Member

PHP
Debian 11 7.4
Ubuntu 20.04 7.4
SLES 12.5 7.4
RHEL 8 7.2*

* https://git.icinga.com/packages/icingaweb/-/jobs/534638

@nilmerg
Copy link
Member

nilmerg commented Jul 16, 2024

Well, seems we have to support 7.2 still.

@Al2Klimov
Copy link
Member

@lippserd FWIW:

PHP
Debian x, 11/12 7.4/8.2
Ubuntu x.04, 20/22/24 7.4/8.1/8.3
SLES 12.5 7.4
openSUSE 15.x, 3/4/5/6 7.4/8/8/8.2
Rocky x, 8/9 7.2/8
Amazon Linux It's complicated 😅

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

Successfully merging a pull request may close this issue.

4 participants