Skip to content

fix: Make getTraceMeta() function public. #628

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 3 commits into from May 16, 2022
Merged

fix: Make getTraceMeta() function public. #628

merged 3 commits into from May 16, 2022

Conversation

ghost
Copy link

@ghost ghost commented May 16, 2022

Fixes #627

Copy link
Contributor

@Jean85 Jean85 left a comment

Choose a reason for hiding this comment

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

On hold until #627 is sorted out.

Copy link
Contributor

@Jean85 Jean85 left a comment

Choose a reason for hiding this comment

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

Fix is fine, can you add a changelog entry?

@Jean85 Jean85 added this to the 4.2 milestone May 16, 2022
@ste93cry
Copy link
Contributor

Are we really sure that this is not a bug in Twig itself? I mean, it worked fine until now, and suddenly a minor version is released and it breaks everything: it's weird...

@Jean85
Copy link
Contributor

Jean85 commented May 16, 2022

It seems related to twigphp/Twig#3702
They changed the way in which they invoke callables, and ours was a private method...

We can try to report it as it is to see if they want to fix it or not.

Copy link
Contributor

@Jean85 Jean85 left a comment

Choose a reason for hiding this comment

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

Stof suggested to us to switch to the more direct public method way (so with [$this, 'methodName]) since it would be more performant under Twig: twigphp/Twig#3703 (comment)

@ghost
Copy link
Author

ghost commented May 16, 2022

PR updated with the direct method call. Do I need to rebase?

Copy link
Contributor

@Jean85 Jean85 left a comment

Choose a reason for hiding this comment

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

No rebase needed, it's fine! 👍

@Jean85 Jean85 requested a review from ste93cry May 16, 2022 13:49
@ste93cry ste93cry merged commit e34eb19 into getsentry:master May 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Call to sentry_trace_meta() breaks with Twig 3.4.0.
2 participants