Skip to content

Commit e737911

Browse files
dmitryuknicolas-grekas
authored andcommitted
[Stopwatch] Fix StopWatchEvent never throws InvalidArgumentException
1 parent d6e0af4 commit e737911

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Symfony/Component/Stopwatch/StopwatchEvent.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ class StopwatchEvent
3939
* @param string|null $category The event category or null to use the default
4040
* @param bool $morePrecision If true, time is stored as float to keep the original microsecond precision
4141
* @param string|null $name The event name or null to define the name as default
42-
*
43-
* @throws \InvalidArgumentException When the raw time is not valid
4442
*/
4543
public function __construct(float $origin, ?string $category = null, bool $morePrecision = false, ?string $name = null)
4644
{
@@ -207,8 +205,6 @@ protected function getNow(): float
207205

208206
/**
209207
* Formats a time.
210-
*
211-
* @throws \InvalidArgumentException When the raw time is not valid
212208
*/
213209
private function formatTime(float $time): float
214210
{

0 commit comments

Comments
 (0)