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

[4.x] Implement new GateEvaluated event #1018

Merged
merged 1 commit into from
Feb 22, 2021
Merged

Conversation

driesvints
Copy link
Member

This PR implements the new GateEvaluated event which will be shipped with tomorrow's Laravel v8.29.0 release. It fixes an issue where Gate after checks weren't properly recorded by Telescope.

I had to introduce a breaking change for the getCallerFromStackTrace call to allow it to pass the lines that should be forgotten from the stack trace when recording the backtrace. I needed to introduce this because the backtrace is now two lines instead of two. Another option is to put the contents from recordGateCheck in handleGateEvaluated but that would be an even bigger breaking change I think.

Fixes #1014

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.

Gate watcher does not take after interceptors into account
2 participants