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

[10.x] Remove unwanted call to include stack traces #47687

Conversation

HazzazBinFaiz
Copy link
Contributor

An additional call is not required to include stack traces as the 5th parameter of constructor of Monolog\Formatter\LineFormatter

The constructor call the method includeStacktraces itself with the value of 5th parameter of constructor.

https://github.com/Seldaek/monolog/blob/e2392369686d420ca32df3803de28b5d6f76867d/src/Monolog/Formatter/LineFormatter.php#L43-L50

@GrahamCampbell GrahamCampbell changed the title Remove unwanted call to include stack traces [10.x] Remove unwanted call to include stack traces Jul 8, 2023
@GrahamCampbell
Copy link
Member

Yeh, this code will have been left over from monolog v2 (older versions of the 2.x series, at least) support. We only support v3 in Laravel 10, so this change should be safe to make.

@taylorotwell taylorotwell merged commit 81bf9e7 into laravel:10.x Jul 8, 2023
@HazzazBinFaiz HazzazBinFaiz deleted the remove-unwanted-call-for-stacktraces branch July 9, 2023 04:32
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.

3 participants