Skip to content

Commit 365aca3

Browse files
minor #59826 [Stopwatch] Fix StopWatchEvent never throws InvalidArgumentException (dmitryuk)
This PR was submitted for the 7.2 branch but it was merged into the 6.4 branch instead. Discussion ---------- [Stopwatch] Fix StopWatchEvent never throws InvalidArgumentException | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | | License | MIT Where was old [commit](416a2a4#diff-c71d0fac870b79a4782783376e3bdc8f73e5d0c4427bd45711f4d112f71e76feR172) where `InvalidArgumentException` really thrown, but it is no longer needed now. Commits ------- e737911 [Stopwatch] Fix StopWatchEvent never throws InvalidArgumentException
2 parents d6e0af4 + e737911 commit 365aca3

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy