Limit swoole support to PHP 7.4

This commit is contained in:
Shivam Mathur 2020-07-26 06:03:08 +05:30
parent 818ca89f55
commit d920044a54
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A
2 changed files with 4 additions and 4 deletions

4
dist/index.js vendored
View File

@ -3559,8 +3559,8 @@ async function addExtensionDarwin(extension_csv, version, pipe) {
// match 5.6xdebug to 8.0xdebug, 5.6swoole to 8.0swoole
// match 5.6grpc to 7.4grpc, 5.6protobuf to 7.4protobuf
// match 7.1pcov to 8.0pcov
case /(5\.6|7\.[0-4]|8\.[0-9])(xdebug|swoole)/.test(version_extension):
case /(5\.6|7\.[0-4])(grpc|protobuf)/.test(version_extension):
case /(5\.6|7\.[0-4]|8\.[0-9])xdebug/.test(version_extension):
case /(5\.6|7\.[0-4])(grpc|protobuf|swoole)/.test(version_extension):
case /(7\.[1-4]|8\.[0-9])pcov/.test(version_extension):
command = 'add_brew_extension ' + extension_name;
break;

View File

@ -56,8 +56,8 @@ export async function addExtensionDarwin(
// match 5.6xdebug to 8.0xdebug, 5.6swoole to 8.0swoole
// match 5.6grpc to 7.4grpc, 5.6protobuf to 7.4protobuf
// match 7.1pcov to 8.0pcov
case /(5\.6|7\.[0-4]|8\.[0-9])(xdebug|swoole)/.test(version_extension):
case /(5\.6|7\.[0-4])(grpc|protobuf)/.test(version_extension):
case /(5\.6|7\.[0-4]|8\.[0-9])xdebug/.test(version_extension):
case /(5\.6|7\.[0-4])(grpc|protobuf|swoole)/.test(version_extension):
case /(7\.[1-4]|8\.[0-9])pcov/.test(version_extension):
command = 'add_brew_extension ' + extension_name;
break;