Skip to content

Commit dc88cfb

Browse files
TimoFrenzelTimo Frenzel
authored andcommitted
skip swoole, otherwise fatal error (barryvdh#1477)
Co-authored-by: Timo Frenzel <[email protected]>
1 parent a8f0552 commit dc88cfb

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)