Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Stopwatch] Add type-hints for Stopwatch and Section classes#32242
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
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
jschaedl commentedJul 5, 2019
33a3ff1 to725bad3Compare…hod. (jschaedl)This PR was merged into the 4.4 branch.Discussion----------[Stopwatch] Deprecate passing null in Section::get() method.| Q | A| ------------- | ---| Branch? | 4.4| Bug fix? | no| New feature? | no <!-- please update src/**/CHANGELOG.md files -->| BC breaks? | no <!-- seehttps://symfony.com/bc -->| Deprecations? | yes <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->| Tests pass? | yes <!-- please add some, will be required by reviewers -->| Fixed tickets |#32179<!-- #-prefixed issue number(s), if any -->| License | MIT| Doc PR | N/AThis PR is related to#32242Commits-------ea48176 [Stopwatch] Deprecate passing null in Section::get() method.
720af19 to13f95a6CompareUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
fabpot commentedJul 27, 2019
@jschaedl Can you have a look at the remaining comments? Thank you. |
481f71d toe7426caCompareTobion commentedJul 28, 2019 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I rebased and fixed the comments. It seems the webprofiler toolbar request does not have the x-debug-token and called the stopwatch needlessly. I skipped it in this case and checked the symfony timeline panel and nothing changed. So this seems fine. |
This PR was merged into the 3.4 branch.Discussion----------[Stopwatch] fix some phpdocs| Q | A| ------------- | ---| Branch? | 3.4| Bug fix? | no| New feature? | no <!-- please update src/**/CHANGELOG.md files -->| BC breaks? | no <!-- seehttps://symfony.com/bc -->| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->| Tests pass? | yes <!-- please add some, will be required by reviewers -->| Fixed tickets || License | MIT| Doc PR |Fix phpdocs found in#32242Commits-------66dc906 [Stopwatch] fix some phpdocs
…sabled (Tobion)This PR was merged into the 3.4 branch.Discussion----------[HttpKernel] do not stopwatch sections when profiler is disabled| Q | A| ------------- | ---| Branch? | 4.3| Bug fix? | yes| New feature? | no <!-- please update src/**/CHANGELOG.md files -->| BC breaks? | no <!-- seehttps://symfony.com/bc -->| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->| Tests pass? | yes <!-- please add some, will be required by reviewers -->| Fixed tickets || License | MIT| Doc PR |the toolbar and profiler panel disable to profiler which then does not set the X-Debug-Token. so when the header does not exist, do not call the stopwatch methods with `null` which violates the contract and does not make sense. found with#32242Commits-------8718cd1 [HttpKernel] do not stopwatch sections when profiler is disabled
e7426ca to538cc34CompareTobion commentedJul 29, 2019
Thank you@jschaedl. |
…sses (jschaedl, Tobion)This PR was merged into the 5.0-dev branch.Discussion----------[Stopwatch] Add type-hints for Stopwatch and Section classes| Q | A| ------------- | ---| Branch? | master <!-- see below -->| Bug fix? | no| New feature? | no <!-- please update src/**/CHANGELOG.md files -->| BC breaks? | no <!-- seehttps://symfony.com/bc -->| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->| Tests pass? | yes <!-- please add some, will be required by reviewers -->| Fixed tickets |#32179 <!-- #-prefixed issue number(s), if any -->| License | MIT| Doc PR | N/A <!-- required for new features -->This PR adds type hints to the `Stopwatch` and `Section` classes.Commits-------538cc34 [Stopwatch] fix wrong nullable typeff4528e [Stopwatch] Add type-hints for Stopwatch and Section classes
This PR adds type hints to the
StopwatchandSectionclasses.