We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad191c2 commit bf064aeCopy full SHA for bf064ae
src/EventLoop.php
@@ -361,7 +361,7 @@ public static function getDriver(): Driver
361
public static function createSuspension(): Suspension
362
{
363
/** @psalm-suppress RedundantPropertyInitializationCheck */
364
- if (!self::$fiber || self::$fiber->isTerminated()) {
+ if (!isset(self::$fiber) || self::$fiber->isTerminated()) {
365
if (!\class_exists(\Fiber::class, false)) {
366
throw new \Error("Fibers required to create loop suspensions");
367
}
0 commit comments