diff --git a/src/TaskRunner/Commands/DockerCommands.php b/src/TaskRunner/Commands/DockerCommands.php index 551425dbc..e80962fb4 100644 --- a/src/TaskRunner/Commands/DockerCommands.php +++ b/src/TaskRunner/Commands/DockerCommands.php @@ -138,8 +138,8 @@ private function getProjectPhpFromWebsite(string $projectId): array // Get the php version from the production environment. if (!empty($data['environments'])) { foreach ($data['environments'] as $env) { - if (!empty($data['php_version']) && $env['type'] === 'Production') { - return ['php_version' => $data['php_version']]; + if (!empty($env['php_version']) && $env['type'] === 'Production') { + return ['php_version' => $env['php_version']]; } } }