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.3 deprecate second param to array_keys #387

Open
andrewnicols opened this issue Nov 7, 2023 · 0 comments
Open

PHP 8.3 deprecate second param to array_keys #387

andrewnicols opened this issue Nov 7, 2023 · 0 comments

Comments

@andrewnicols
Copy link

As noted in the RFC PHP 8.3 deprecates the second parameter to array_keys() to apply a filter.

The following uses of a second filter param to array_keys can be found in tcpdf:

The suggestion is to combine array_keys and array_filter. A new method may be added in PHP 8.4 but does not exist yet.

library/HTMLPurifier/Lexer/PH5P.php:                            $marker = end(array_keys($this->a_formatting, self::MARKER, true));
maintenance/PH5P.php:                        $marker = end(array_keys($this->a_formatting, self::MARKER, true));
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

1 participant