Skip to content

Commit f2b2617

Browse files
committed
Make sure not to fail when the openswoole module is not installed.
1 parent faa15c1 commit f2b2617

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compat/openswoole.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
// @see https://github.com/mezzio/mezzio-swoole/issues/110#issuecomment-1500174967
88
// Override the swoole_set_process_name function
9-
if (version_compare(phpversion('openswoole'), '22.0.0', '>=')) {
9+
if (version_compare((string)phpversion('openswoole'), '22.0.0', '>=')) {
1010
function swoole_set_process_name(string $process_name): void
1111
{
1212
Util::setProcessName($process_name);

0 commit comments

Comments
 (0)