Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit aefc7f5

Browse filesBrowse files
committed
minor #32793 [Stopwatch] fix some phpdocs (Tobion)
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 <!-- see https://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 #32242 Commits ------- 66dc906 [Stopwatch] fix some phpdocs
2 parents 2113e67 + 66dc906 commit aefc7f5
Copy full SHA for aefc7f5

File tree

2 files changed

+7
-6
lines changed
Filter options

2 files changed

+7
-6
lines changed

‎src/Symfony/Component/HttpKernel/DataCollector/TimeDataCollector.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpKernel/DataCollector/TimeDataCollector.php
+3-4Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@
1515
use Symfony\Component\HttpFoundation\Response;
1616
use Symfony\Component\HttpKernel\KernelInterface;
1717
use Symfony\Component\Stopwatch\Stopwatch;
18+
use Symfony\Component\Stopwatch\StopwatchEvent;
1819

1920
/**
20-
* TimeDataCollector.
21-
*
2221
* @author Fabien Potencier <fabien@symfony.com>
2322
*/
2423
class TimeDataCollector extends DataCollector implements LateDataCollectorInterface
@@ -77,7 +76,7 @@ public function lateCollect()
7776
/**
7877
* Sets the request events.
7978
*
80-
* @param array $events The request events
79+
* @param StopwatchEvent[] $events The request events
8180
*/
8281
public function setEvents(array $events)
8382
{
@@ -91,7 +90,7 @@ public function setEvents(array $events)
9190
/**
9291
* Gets the request events.
9392
*
94-
* @return array The request events
93+
* @return StopwatchEvent[] The request events
9594
*/
9695
public function getEvents()
9796
{

‎src/Symfony/Component/Stopwatch/Section.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Stopwatch/Section.php
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ public function get($id)
6767
return $child;
6868
}
6969
}
70+
71+
return null;
7072
}
7173

7274
/**
@@ -110,8 +112,8 @@ public function setId($id)
110112
/**
111113
* Starts an event.
112114
*
113-
* @param string $name The event name
114-
* @param string $category The event category
115+
* @param string $name The event name
116+
* @param string|null $category The event category
115117
*
116118
* @return StopwatchEvent The event
117119
*/

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.