PHP Deprecation in PHP 8

Hi,
Yes it is Sage 9.
Here is the existing composer.json file code:
{
“name”: “roots/sage”,
“type”: “wordpress-theme”,
“license”: “MIT”,
“description”: “WordPress starter theme with a modern development workflow”,
“homepage”: “Sage | WordPress Starter Theme with Tailwind CSS & Blade | Roots”,
“authors”: [
{
“name”: “Ben Word”,
“email”: “ben@benword.com”,
“homepage”: “https://github.com/retlehs
},
{
“name”: “Scott Walkinshaw”,
“email”: “scott.walkinshaw@gmail.com”,
“homepage”: “https://github.com/swalkinshaw
},
{
“name”: “QWp6t”,
“email”: “hi@qwp6t.me”,
“homepage”: “https://github.com/qwp6t
}
],
“keywords”: [“wordpress”],
“support”: {
“issues”: “https://github.com/roots/sage/issues”,
“forum”: “https://discourse.roots.io/
},
“autoload”: {
“psr-4”: {
“App\”: “app/”,
“Api\”: “api/”
}
},
“require”: {
“php”: “>=7.1”,
“composer/installers”: “~1.0”,
“illuminate/support”: “5.6.*”,
“roots/sage-lib”: “~9.0.9”,
“soberwp/controller”: “~2.1.0”,
“roots/sage-woocommerce”: “^1.0”
},
“require-dev”: {
“squizlabs/php_codesniffer”: “^2.8.0”,
“roots/sage-installer”: “~1.6”
},
“scripts”: {
“test”: [“phpcs”],
“post-create-project-cmd”: [
“Roots\Sage\Installer\ComposerScript::postCreateProject”
]
}
}

Queries:

  1. Should I replace the full code below (that you shared in https://discourse.roots.io/t/sage-9-php-8-0/22485/15 ) ?
  2. What about the PHP version line “php”: “>=7.1”?
  3. After the composer update, committing the code changes to our server will solve all the deprecation errors ?

{
“name”: “roots/sage”,
“type”: “wordpress-theme”,
“license”: “MIT”,
“description”: “WordPress starter theme with a modern development workflow”,
“homepage”: “Sage | WordPress Starter Theme with Tailwind CSS & Blade | Roots”,
“authors”: [
{
“name”: “Ben Word”,
“email”: “ben@benword.com”,
“homepage”: “https://github.com/retlehs
},
{
“name”: “Scott Walkinshaw”,
“email”: “scott.walkinshaw@gmail.com”,
“homepage”: “https://github.com/swalkinshaw
},
{
“name”: “QWp6t”,
“email”: “hi@qwp6t.me”,
“homepage”: “https://github.com/qwp6t
}
],
“keywords”: [“wordpress”],
“support”: {
“issues”: “https://github.com/roots/sage/issues”,
“forum”: “https://discourse.roots.io/
},
“autoload”: {
“psr-4”: {
“App\”: “app/”
}
},
“repositories”: [
{ “type”: “vcs”, “url”: “https://github.com/jeh5256/sage-installer”},
{ “type”:“vcs”, “url”:“https://github.com/jeh5256/sage-lib” }
],
“require”: {
“php”: “>=7.1”,
“composer/installers”: “~2.0”,
“illuminate/support”: “^8.0”,
“roots/sage-lib”: “dev-master”,
“soberwp/controller”: “~2.1.0”
},
“require-dev”: {
“squizlabs/php_codesniffer”: “^2.8.0”,
“roots/sage-installer”: “dev-master”
},
“scripts”: {
“test”: [“phpcs”],
“post-create-project-cmd”: [
“Roots\Sage\Installer\ComposerScript::postCreateProject”
]
}
}

Kindly let me know.
Thanks.