Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[ExpressionLanguage] fix passing arguments to call_user_func_array() on PHP 8 #37912

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

Merged
merged 1 commit into from
Aug 21, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix passing arguments to call_user_func_array() on PHP 8
  • Loading branch information
xabbuh committed Aug 21, 2020
commit a55ce7c8bb70b3de948cb76cee374c9b3e0f05d8
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,13 @@ public function evaluate($functions, $values)
throw new \RuntimeException(sprintf('Unable to call method "%s" of object "%s".', $this->nodes['attribute']->attributes['value'], \get_class($obj)));
}

return \call_user_func_array($toCall, $this->nodes['arguments']->evaluate($functions, $values));
$arguments = $this->nodes['arguments']->evaluate($functions, $values);

if (\PHP_VERSION_ID >= 80000) {
$arguments = array_values($arguments);
}

return \call_user_func_array($toCall, $arguments);

case self::ARRAY_CALL:
$array = $this->nodes['node']->evaluate($functions, $values);
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.