diff --git a/src/Factory.php b/src/Factory.php index 5a923a2d..207bc13c 100644 --- a/src/Factory.php +++ b/src/Factory.php @@ -9,9 +9,9 @@ public static function create() // @codeCoverageIgnoreStart if (function_exists('event_base_new')) { return new LibEventLoop(); - } else if (class_exists('libev\EventLoop')) { + } else if (class_exists('libev\EventLoop', false)) { return new LibEvLoop; - } else if (class_exists('EventBase')) { + } else if (class_exists('EventBase', false)) { return new ExtEventLoop; }