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

Languages single breaks on PHP version 8.2 #73

Open
bogreudell opened this issue Mar 27, 2024 · 0 comments
Open

Languages single breaks on PHP version 8.2 #73

bogreudell opened this issue Mar 27, 2024 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@bogreudell
Copy link
Collaborator

bogreudell commented Mar 27, 2024

The following variables are the problem:

$lexicons = array_merge($lexicon_source, $lexicon_target);
$lexicons_count = count($lexicons);

It may be because $lexicon_source and $lexicon_target are not treated as arrays when empty, breaking array_merge

Is there a better way to write this to account for the possibility of an empty variable?

@bogreudell bogreudell added bug Something isn't working help wanted Extra attention is needed labels Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant