From 9d14b019f63d08f7a9742364d2b3c6f469c28785 Mon Sep 17 00:00:00 2001 From: PapaBear Date: Wed, 7 Feb 2024 21:19:43 +0100 Subject: [PATCH] skip swoole, otherwise fatal error (#1477) Co-authored-by: Timo Frenzel --- src/Generator.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Generator.php b/src/Generator.php index 9df9291..4a92d35 100644 --- a/src/Generator.php +++ b/src/Generator.php @@ -153,6 +153,11 @@ class Generator if ($facade == 'Illuminate\Support\Facades\Redis' && $name == 'Redis' && !class_exists('Predis\Client')) { continue; } + + // Skip the swoole + if ($facade == 'SwooleTW\Http\Server\Facades\Server' && $name == 'Server' && !class_exists('Swoole\Http\Server')) { + continue; + } $magicMethods = array_key_exists($name, $this->magic) ? $this->magic[$name] : []; $alias = new Alias($this->config, $name, $facade, $magicMethods, $this->interfaces);