Skip to content

Commit

Permalink
Fixed supported PHP versions in post-install script (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
intuibase authored Feb 9, 2025
1 parent c6cd363 commit 700f460
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packaging/scripts/post-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -194,14 +194,14 @@ function is_php_supported() {
echo "Detected PHP version '${PHP_MAJOR_MINOR}'"
# Make sure list of PHP versions supported by the Elastic OTel PHP is in sync.
# See the comment in .ci/shared.sh
if [ "${PHP_MAJOR_MINOR}" == "8.0" ] || \
[ "${PHP_MAJOR_MINOR}" == "8.1" ] || \
if [ "${PHP_MAJOR_MINOR}" == "8.1" ] || \
[ "${PHP_MAJOR_MINOR}" == "8.2" ] || \
[ "${PHP_MAJOR_MINOR}" == "8.3" ]
[ "${PHP_MAJOR_MINOR}" == "8.3" ] || \
[ "${PHP_MAJOR_MINOR}" == "8.4" ]
then
return 0
else
echo 'Failed. The supported PHP versions are 8.0-8.3.'
echo 'Failed. The supported PHP versions are 8.1-8.4.'
return 1
fi
}
Expand Down

0 comments on commit 700f460

Please sign in to comment.