mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 13:28:55 +00:00
[ticket/17135] Suppress psalm UndefinedFunction invalid annotations in tests
PHPBB3-17135
This commit is contained in:
parent
83294fed84
commit
b57f1f7751
1 changed files with 2 additions and 0 deletions
|
@ -164,6 +164,7 @@ class extension extends \Twig\Extension\AbstractExtension
|
||||||
// We always include the last element (this was the past design)
|
// We always include the last element (this was the past design)
|
||||||
$end = ($end == -1 || $end === null) ? null : $end + 1;
|
$end = ($end == -1 || $end === null) ? null : $end + 1;
|
||||||
|
|
||||||
|
/** @psalm-suppress UndefinedFunction */
|
||||||
return twig_slice($env, $item, $start, $end, $preserveKeys);
|
return twig_slice($env, $item, $start, $end, $preserveKeys);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -213,6 +214,7 @@ class extension extends \Twig\Extension\AbstractExtension
|
||||||
{
|
{
|
||||||
$args = func_get_args();
|
$args = func_get_args();
|
||||||
|
|
||||||
|
/** @psalm-suppress UndefinedFunction */
|
||||||
return twig_escape_filter($this->environment, call_user_func_array([$this, 'lang'], $args), 'js');
|
return twig_escape_filter($this->environment, call_user_func_array([$this, 'lang'], $args), 'js');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue