File tree 3 files changed +5
-4
lines changed
3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,10 @@ protected function setUp(): void
25
25
26
26
public static function setUpBeforeClass (): void
27
27
{
28
+ if (\PHP_VERSION_ID <= 80500 && isset ($ _SERVER ['GITHUB_ACTIONS ' ])) {
29
+ self ::markTestSkipped ('Test segfaults on PHP 8.5 ' );
30
+ }
31
+
28
32
try {
29
33
new Relay (...explode (': ' , getenv ('REDIS_HOST ' )));
30
34
} catch (\Relay \Exception $ e ) {
Original file line number Diff line number Diff line change @@ -100,6 +100,7 @@ private function isSetMethod(\ReflectionMethod $method): bool
100
100
return !$ method ->isStatic ()
101
101
&& !$ method ->getAttributes (Ignore::class)
102
102
&& 0 < $ method ->getNumberOfParameters ()
103
+ && 3 < \strlen ($ method ->name )
103
104
&& str_starts_with ($ method ->name , 'set ' )
104
105
&& !ctype_lower ($ method ->name [3 ])
105
106
;
Original file line number Diff line number Diff line change @@ -38,8 +38,6 @@ class StopwatchEvent
38
38
* @param string|null $category The event category or null to use the default
39
39
* @param bool $morePrecision If true, time is stored as float to keep the original microsecond precision
40
40
* @param string|null $name The event name or null to define the name as default
41
- *
42
- * @throws \InvalidArgumentException When the raw time is not valid
43
41
*/
44
42
public function __construct (
45
43
float $ origin ,
@@ -219,8 +217,6 @@ protected function getNow(): float
219
217
220
218
/**
221
219
* Formats a time.
222
- *
223
- * @throws \InvalidArgumentException When the raw time is not valid
224
220
*/
225
221
private function formatTime (float $ time ): float
226
222
{
You can’t perform that action at this time.
0 commit comments