From 9f3b3819c5455749ae44a19a9f94241dc481ee3c Mon Sep 17 00:00:00 2001 From: Daniel Hewes Date: Thu, 4 Jan 2024 11:55:38 -0800 Subject: [PATCH] chore: Bump PHP version to 8.2. --- composer.json | 2 +- inc/lib/init.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index b486bb8..8b1ed2c 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,7 @@ "tofino" ], "require": { - "php": ">=7.4.0", + "php": ">=8.2.0", "composer/installers": "~v2.2.0", "respect/validation": "^2.2.4" }, diff --git a/inc/lib/init.php b/inc/lib/init.php index deca4a2..c4d0ede 100644 --- a/inc/lib/init.php +++ b/inc/lib/init.php @@ -19,8 +19,8 @@ function php_version_check() { $php_version = phpversion(); - if (version_compare($php_version, '8.0.0', '<')) { - wp_die('

' . __('PHP version >= 8.0.0 is required for this theme to work correctly.', 'tofino') . '

', 'An error occured.'); + if (version_compare($php_version, '8.2.0', '<')) { + wp_die('

' . __('PHP version >= 8.2.0 is required for this theme to work correctly.', 'tofino') . '

', 'An error occured.'); } } add_action('after_setup_theme', __NAMESPACE__ . '\\php_version_check');