File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -56,8 +56,8 @@ function compare_versions_using_composer() {
56
56
local directory=$1
57
57
local composer_json=$2
58
58
SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd ) "
59
- states =" $( curl -sL https://www.php.net/releases/states.php ) "
60
- php_versions=" $( echo " $states " | jq -r ' to_entries[] | .key as $major | .value | to_entries[] | .key ' | sort -Vu | tr ' \n ' ' , ' ) "
59
+ vs_json =" $SCRIPT_DIR " /../config/vs.json
60
+ php_versions=$( jq -r ' keys | join(",") ' " $vs_json " )
61
61
constraint=$( jq -r .require.php " $composer_json " )
62
62
php " $SCRIPT_DIR " /semver/semver.phar composer.json " $constraint " " $php_versions "
63
63
}
@@ -66,8 +66,8 @@ function compare_versions_using_package_xml() {
66
66
local directory=$1
67
67
local package_xml=$2
68
68
SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd ) "
69
- states =" $( curl -sL https://www.php.net/releases/states.php ) "
70
- php_versions=" $( echo " $states " | jq -r ' to_entries[] | .key as $major | .value | to_entries[] | .key ' | sort -Vu | tr ' \n ' ' , ' ) "
69
+ vs_json =" $SCRIPT_DIR " /../config/vs.json
70
+ php_versions=$( jq -r ' keys | join(",") ' " $vs_json " )
71
71
php " $SCRIPT_DIR " /semver/semver.phar package.xml " $package_xml " " $php_versions "
72
72
}
73
73
You can’t perform that action at this time.
0 commit comments