8000 minor #32793 [Stopwatch] fix some phpdocs (Tobion) · symfony/symfony@aefc7f5 · GitHub
[go: up one dir, main page]

Skip to content

Commit aefc7f5

Browse 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

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

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

Lines 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

Lines 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