Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce6f2a8 commit 0a19eabCopy full SHA for 0a19eab
src/Loop.php
@@ -38,9 +38,9 @@ final class Loop
38
* The factory will be invoked if none is passed to `Loop::execute`. A default driver will be created to
39
* support synchronous waits in traditional applications.
40
*
41
- * @param DriverFactory $factory New factory to replace the previous one.
+ * @param DriverFactory|null $factory New factory to replace the previous one.
42
*/
43
- public static function setFactory(DriverFactory $factory)
+ public static function setFactory(DriverFactory $factory = null)
44
{
45
if (self::$level > 0) {
46
throw new \RuntimeException("Setting a new factory while running isn't allowed!");
0 commit comments