From b70a44f5be9594c9428ed54887328442a662335a Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 27 Jun 2022 20:54:29 +0100 Subject: [PATCH 1/1] Use PHP 8.1 on Ubuntu 22.04 --- cookbooks/php/attributes/default.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cookbooks/php/attributes/default.rb b/cookbooks/php/attributes/default.rb index f7a620810..f83c1356d 100644 --- a/cookbooks/php/attributes/default.rb +++ b/cookbooks/php/attributes/default.rb @@ -1,2 +1,6 @@ -default[:php][:version] = "7.4" +default[:php][:version] = if node[:lsb][:release].to_f < 22.04 + "7.4" + else + "8.1" + end default[:php][:fpm][:options] = {} -- 2.39.5