Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[MonologBridge] Fix PHP deprecation withpreg_match()#58492
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
simoheinonen commentedOct 8, 2024
| Q | A |
|---|---|
| Branch? | 5.4 |
| Bug fix? | yes |
| New feature? | no |
| Deprecations? | no |
| Issues | |
| License | MIT |
Can we add a test to prevent regressions? |
@xabbuh I don't think so, it is a language-level deprecation so I don't think we can really do anything here? |
you can write a test running that code without a User-Agent header (i.e. triggering the code path for which you solved the deprecation) |
preg_match()ca9b0c1 to4d7a6f6CompareThank you@simoheinonen. |
cc3fb70 intosymfony:5.4Uh oh!
There was an error while loading.Please reload this page.
This PR was merged into the 5.4 branch.Discussion----------[MonologBridge] simplify test| Q | A| ------------- | ---| Branch? | 5.4| Bug fix? | no| New feature? | no| Deprecations? | no| Issues || License | MITwe can simplify the test added in#58492 by dropping the custom exception handler as a triggered deprecation would let the test fail anywayCommits-------aa9eb60 simplify test