8000 [Stopwatch] fix some phpdocs · symfony/symfony@73d8bf8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 73d8bf8

Browse files
committed
[Stopwatch] fix some phpdocs
1 parent 2113e67 commit 73d8bf8

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
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
/**
2021
* TimeDataCollector.
@@ -77,7 +78,7 @@ public function lateCollect()
7778
/**
7879
* Sets the request events.
7980
*
80-
* @param array $events The request events
81+
* @param StopwatchEvent[] $events The request events
8182
*/
8283
public function setEvents(array $events)
8384
{
@@ -91,7 +92,7 @@ public function setEvents(array $events)
9192
/**
9293
* Gets the request events.
9394
*
94-
* @return array The request events
95+
* @return StopwatchEvent[] The request events
9596
*/
9697
public function getEvents()
9798
{

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