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

FIX Prevent infinite loops in Deprecation::notice() #10530

Conversation

emteknetnz
Copy link
Member

Issue #10500

Prevent nested Deprecation::notice(), such as in the case of BaseKernel::getEnvironment(), from causing an infinite loop

@emteknetnz emteknetnz force-pushed the pulls/4/prevent-deprecation-loop branch 2 times, most recently from 60aba3b to 8089fd9 Compare October 10, 2022 00:59
@emteknetnz emteknetnz force-pushed the pulls/4/prevent-deprecation-loop branch 2 times, most recently from 0b2f2d5 to 82ee708 Compare October 12, 2022 01:11
Copy link
Member

@GuySartorelli GuySartorelli left a comment

Choose a reason for hiding this comment

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

Looks good, one small change.

src/Dev/Deprecation.php Show resolved Hide resolved
@emteknetnz emteknetnz force-pushed the pulls/4/prevent-deprecation-loop branch from 82ee708 to 1ee0aff Compare October 13, 2022 00:37
@GuySartorelli GuySartorelli merged commit 369df42 into silverstripe:4 Oct 13, 2022
@GuySartorelli GuySartorelli deleted the pulls/4/prevent-deprecation-loop branch October 13, 2022 01:00
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.

2 participants