You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/EventLoop/Internal/AbstractDriver.php
+21-10Lines changed: 21 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,9 @@ public function __construct()
70
70
// PHP GC is broken on early 8.1 and 8.2 versions, see https://github.com/php/php-src/issues/10496
71
71
/** @psalm-suppress RiskyTruthyFalsyComparison */
72
72
if (!\getenv('REVOLT_DRIVER_SUPPRESS_ISSUE_10496')) {
73
-
thrownew \Error('Your version of PHP is affected by serious garbage collector bugs related to fibers. Please upgrade to a newer version of PHP, i.e. >= 8.1.17 or => 8.2.4');
73
+
thrownew \Error(
74
+
'Your version of PHP is affected by serious garbage collector bugs related to fibers. Please upgrade to a newer version of PHP, i.e. >= 8.1.17 or => 8.2.4'
75
+
);
74
76
}
75
77
}
76
78
@@ -119,7 +121,7 @@ public function run(): void
119
121
$lambda();
120
122
121
123
thrownew \Error(
122
-
'Interrupt from event loop must throw an exception: ' . ClosureHelper::getDescription($lambda)
124
+
'Interrupt from event loop must throw an exception: '.ClosureHelper::getDescription($lambda)
123
125
);
124
126
}
125
127
}
@@ -330,7 +332,7 @@ public function getErrorHandler(): ?\Closure
330
332
publicfunction__debugInfo(): array
331
333
{
332
334
// @codeCoverageIgnoreStart
333
-
return\array_map(fn(DriverCallback$callback) => [
335
+
return\array_map(fn(DriverCallback$callback) => [
334
336
'type' => $this->getType($callback->id),
335
337
'enabled' => $callback->enabled,
336
338
'referenced' => $callback->referenced,
@@ -400,9 +402,10 @@ final protected function error(\Closure $closure, \Throwable $exception): void
400
402
{
401
403
if ($this->errorHandler === null) {
402
404
// Explicitly override the previous interrupt if it exists in this case, hiding the exception is worse
0 commit comments