Skip to content

Languages single breaks on PHP version 8.2 #73

@bogreudell

Description

@bogreudell

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions