Fix support for phalcon on PHP 7.4

This commit is contained in:
Shivam Mathur 2024-06-23 18:30:14 +05:30
parent b9f1db485f
commit 9c28f9ba58
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -1,7 +1,11 @@
# Helper function to get phalcon version
get_phalcon_version() {
if [ "$extension" = "phalcon5" ]; then
get_pecl_version phalcon stable 5
if [ "${version:?}" = "7.4" ]; then
echo '5.4.0'
else
get_pecl_version phalcon stable 5
fi
elif [ "$extension" = "phalcon4" ]; then
echo '4.1.2'
elif [ "$extension" = "phalcon3" ]; then