Skip to content

Commit 9d14b01

Browse files
TimoFrenzelTimo Frenzel
andauthored
skip swoole, otherwise fatal error (#1477)
Co-authored-by: Timo Frenzel <timo@locals4u.com>
1 parent f465625 commit 9d14b01

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Generator.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@ protected function getValidAliases()
153153
if ($facade == 'Illuminate\Support\Facades\Redis' && $name == 'Redis' && !class_exists('Predis\Client')) {
154154
continue;
155155
}
156+
157+
// Skip the swoole
158+
if ($facade == 'SwooleTW\Http\Server\Facades\Server' && $name == 'Server' && !class_exists('Swoole\Http\Server')) {
159+
continue;
160+
}
156161

157162
$magicMethods = array_key_exists($name, $this->magic) ? $this->magic[$name] : [];
158163
$alias = new Alias($this->config, $name, $facade, $magicMethods, $this->interfaces);

0 commit comments

Comments
 (0)