skip swoole, otherwise fatal error (#1477)

Co-authored-by: Timo Frenzel <[email protected]>
This commit is contained in:
PapaBear
2024-02-07 21:19:43 +01:00
committed by GitHub
co-authored by Timo Frenzel
parent f4656256fc
commit 9d14b019f6
+5
View File
@@ -154,6 +154,11 @@ class Generator
continue; 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] : []; $magicMethods = array_key_exists($name, $this->magic) ? $this->magic[$name] : [];
$alias = new Alias($this->config, $name, $facade, $magicMethods, $this->interfaces); $alias = new Alias($this->config, $name, $facade, $magicMethods, $this->interfaces);
if ($alias->isValid()) { if ($alias->isValid()) {