Skip to content

Commit

Permalink
Make sure not to fail when the openswoole module is not installed.
Browse files Browse the repository at this point in the history
Signed-off-by: Slavey Karadzhov <skaradzhov@perforce.com>
  • Loading branch information
slaff-at-zend committed Feb 5, 2024
1 parent faa15c1 commit 01a247d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compat/openswoole.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 01a247d

Please sign in to comment.