File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 15
15
use Symfony \Component \HttpFoundation \Response ;
16
16
use Symfony \Component \HttpKernel \KernelInterface ;
17
17
use Symfony \Component \Stopwatch \Stopwatch ;
18
+ use Symfony \Component \Stopwatch \StopwatchEvent ;
18
19
19
20
/**
20
- * TimeDataCollector.
21
- *
22
21
* @author Fabien Potencier <fabien@symfony.com>
23
22
*/
24
23
class TimeDataCollector extends DataCollector implements LateDataCollectorInterface
@@ -77,7 +76,7 @@ public function lateCollect()
77
76
/**
78
77
* Sets the request events.
79
78
*
80
- * @param array $events The request events
79
+ * @param StopwatchEvent[] $events The request events
81
80
*/
82
81
public function setEvents (array $ events )
83
82
{
@@ -91,7 +90,7 @@ public function setEvents(array $events)
91
90
/**
92
91
* Gets the request events.
93
92
*
94
- * @return array The request events
93
+ * @return StopwatchEvent[] The request events
95
94
*/
96
95
public function getEvents ()
97
96
{
Original file line number Diff line number Diff line change @@ -67,6 +67,8 @@ public function get($id)
67
67
return $ child ;
68
68
}
69
69
}
70
+
71
+ return null ;
70
72
}
71
73
72
74
/**
@@ -110,8 +112,8 @@ public function setId($id)
110
112
/**
111
113
* Starts an event.
112
114
*
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
115
117
*
116
118
* @return StopwatchEvent The event
117
119
*/
You can’t perform that action at this time.
0 commit comments