How to change PHP version in WordPress using .htaccess

$ git diff .htaccess
diff --git a/.htaccess b/.htaccess
index 42e86156..986472ac 100644
--- a/.htaccess
+++ b/.htaccess
@@ -100,8 +100,8 @@ RewriteRule "^(.*/)?\.git/" https://%{HTTP_HOST}/? [L]
 RedirectMatch 404 ^(.*/)?\.git+

 # php -- BEGIN cPanel-generated handler, do not edit
-# Set the “ea-php74” package as the default “PHP” programming language.
+# Set the “ea-php82” package as the default “PHP” programming language.
 <IfModule mime_module>
-  AddHandler application/x-httpd-ea-php74 .php .php7 .phtml
+  AddHandler application/x-httpd-ea-php82 .php .php8 .phtml
 </IfModule>
 # php -- END cPanel-generated handler, do not edit