From 66dc9069aa72b6cfcfc07782202b04a3362f3e3f Mon Sep 17 00:00:00 2001 From: Tobias Schultze Date: Sun, 28 Jul 2019 22:46:51 +0200 Subject: [PATCH] [Stopwatch] fix some phpdocs --- .../HttpKernel/DataCollector/TimeDataCollector.php | 7 +++---- src/Symfony/Component/Stopwatch/Section.php | 6 ++++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/Symfony/Component/HttpKernel/DataCollector/TimeDataCollector.php b/src/Symfony/Component/HttpKernel/DataCollector/TimeDataCollector.php index 7ab14b7cb856..d070e838685d 100644 --- a/src/Symfony/Component/HttpKernel/DataCollector/TimeDataCollector.php +++ b/src/Symfony/Component/HttpKernel/DataCollector/TimeDataCollector.php @@ -15,10 +15,9 @@ use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\KernelInterface; use Symfony\Component\Stopwatch\Stopwatch; +use Symfony\Component\Stopwatch\StopwatchEvent; /** - * TimeDataCollector. - * * @author Fabien Potencier */ class TimeDataCollector extends DataCollector implements LateDataCollectorInterface @@ -77,7 +76,7 @@ public function lateCollect() /** * Sets the request events. * - * @param array $events The request events + * @param StopwatchEvent[] $events The request events */ public function setEvents(array $events) { @@ -91,7 +90,7 @@ public function setEvents(array $events) /** * Gets the request events. * - * @return array The request events + * @return StopwatchEvent[] The request events */ public function getEvents() { diff --git a/src/Symfony/Component/Stopwatch/Section.php b/src/Symfony/Component/Stopwatch/Section.php index 14fba8b582d3..f0c5e8b44e6d 100644 --- a/src/Symfony/Component/Stopwatch/Section.php +++ b/src/Symfony/Component/Stopwatch/Section.php @@ -67,6 +67,8 @@ public function get($id) return $child; } } + + return null; } /** @@ -110,8 +112,8 @@ public function setId($id) /** * Starts an event. * - * @param string $name The event name - * @param string $category The event category + * @param string $name The event name + * @param string|null $category The event category * * @return StopwatchEvent The event */