Skip to content

Commit

Permalink
chore: Bump PHP version to 8.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
danimalweb committed Jan 4, 2024
1 parent 7d5e39c commit 9f3b381
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"tofino"
],
"require": {
"php": ">=7.4.0",
"php": ">=8.2.0",
"composer/installers": "~v2.2.0",
"respect/validation": "^2.2.4"
},
Expand Down
4 changes: 2 additions & 2 deletions inc/lib/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
function php_version_check()
{
$php_version = phpversion();
if (version_compare($php_version, '8.0.0', '<')) {
wp_die('<div class="error notice"><p>' . __('PHP version >= 8.0.0 is required for this theme to work correctly.', 'tofino') . '</p></div>', 'An error occured.');
if (version_compare($php_version, '8.2.0', '<')) {
wp_die('<div class="error notice"><p>' . __('PHP version >= 8.2.0 is required for this theme to work correctly.', 'tofino') . '</p></div>', 'An error occured.');
}
}
add_action('after_setup_theme', __NAMESPACE__ . '\\php_version_check');
Expand Down

0 comments on commit 9f3b381

Please sign in to comment.