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

Deprecate the second argument of CallExpression::compileArguments #4105

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

fabpot
Copy link
Contributor

@fabpot fabpot commented Jun 17, 2024

No description provided.

@stof
Copy link
Member

stof commented Jun 18, 2024

the PR title should probably be updated to reflect the actual deprecation

@fabpot fabpot changed the title Deprecate CallExpression::compileArguments Deprecate the second argument of CallExpression::compileArguments Jun 18, 2024
@fabpot
Copy link
Contributor Author

fabpot commented Jun 18, 2024

All fixed now.

@@ -57,6 +57,10 @@ protected function compileCallable(Compiler $compiler)

protected function compileArguments(Compiler $compiler, $isArray = false): void
{
if (func_num_args() >= 2) {
trigger_deprecation('twig/twig', '3.11', 'Passing a second argument to "%s" is deprecated.', __METHOD__);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
trigger_deprecation('twig/twig', '3.11', 'Passing a second argument to "%s" is deprecated.', __METHOD__);
trigger_deprecation('twig/twig', '3.11', 'Passing a second argument to "%s()" is deprecated.', __METHOD__);

@fabpot fabpot merged commit ca39534 into twigphp:3.x Jun 18, 2024
36 of 37 checks passed
@fabpot fabpot deleted the internal-dep branch June 18, 2024 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants