diff --git a/compat/openswoole.php b/compat/openswoole.php index c2eb030..2e4760d 100644 --- a/compat/openswoole.php +++ b/compat/openswoole.php @@ -6,7 +6,7 @@ // @see https://github.com/mezzio/mezzio-swoole/issues/110#issuecomment-1500174967 // Override the swoole_set_process_name function -if (version_compare(phpversion('openswoole'), '22.0.0', '>=')) { +if (version_compare((string)phpversion('openswoole'), '22.0.0', '>=')) { function swoole_set_process_name(string $process_name): void { Util::setProcessName($process_name);