From af0ddfb3811c7c5156890706bafd3aa6f7a522f4 Mon Sep 17 00:00:00 2001 From: Riddhesh Sanghvi Date: Fri, 26 Apr 2024 10:10:25 +0530 Subject: [PATCH] Fix PHP version selection Signed-off-by: Riddhesh Sanghvi --- src/Site_PHP_Docker.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Site_PHP_Docker.php b/src/Site_PHP_Docker.php index b08f4ca..a4029f2 100644 --- a/src/Site_PHP_Docker.php +++ b/src/Site_PHP_Docker.php @@ -64,8 +64,7 @@ public function generate_docker_compose_yml( array $filters = [], $volumes ) { $db['networks'] = $network_default; } // PHP configuration. - $php_ver = ( '7.4' === $filters['php_version'] ? '' : $filters['php_version'] ); - $php_image_key = ( 'latest' === $filters['php_version'] ? 'easyengine/php8.2' : 'easyengine/php' . $php_ver ); + $php_image_key = ( 'latest' === $filters['php_version'] ? 'easyengine/php8.2' : 'easyengine/php' . $filters['php_version'] ); $php['service_name'] = [ 'name' => 'php' ]; $php['image'] = [ 'name' => $php_image_key . ':' . $img_versions[ $php_image_key ] ];