Skip to content

Scan all array literals for language keys#96

Merged
paul999 merged 3 commits intophpbb:masterfrom
kasimi:lang-keys
Sep 22, 2023
Merged

Scan all array literals for language keys#96
paul999 merged 3 commits intophpbb:masterfrom
kasimi:lang-keys

Conversation

@kasimi
Copy link
Contributor

@kasimi kasimi commented Oct 9, 2019

Instead of extracting language keys only from arguments to array_merge(), with this change, string keys from all array literals in the file will be collected and interpreted as being language keys.

@iMattPro
Copy link
Member

iMattPro commented Mar 2, 2021

Bump @paul999 @kasimi Any reason this is dead for 2 years?

if ($item->key instanceof String_)
{
$this->keys[] = $item->key->value;
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is no else to output Err0r message using this $this->output->addMessage(...).
Like in line : https://github.com/phpbb/epv/pull/96/files#diff-e1b04a6070a8aea621fb26a83bd723de8f86c5957aef5b1952a9910c0e0e84a5L142

$this->keys[] = $item->key->value;
}
}
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is no else to output Err0r message using this $this->output->addMessage(...).
Like in line : https://github.com/phpbb/epv/pull/96/files#diff-e1b04a6070a8aea621fb26a83bd723de8f86c5957aef5b1952a9910c0e0e84a5L148

@paul999 paul999 merged commit fc36bcd into phpbb:master Sep 22, 2023
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 this pull request may close these issues.

4 participants