# PHP Deprecation in PHP 8

**URL:** https://discourse.roots.io/t/php-deprecation-in-php-8/26548
**Category:** sage
**Tags:** sage9
**Created:** 2024-01-17T13:34:31Z
**Posts:** 10
**Showing post:** 3 of 10

## Post 3 by @Hema_B — 2024-01-18T06:12:39Z

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](https://roots.io/sage/)”,  
“authors”: [  
{  
“name”: “Ben Word”,  
“email”: “[ben@benword.com](mailto:ben@benword.com)”,  
“homepage”: “[https://github.com/retlehs](https://github.com/retlehs)”  
},  
{  
“name”: “Scott Walkinshaw”,  
“email”: “[scott.walkinshaw@gmail.com](mailto:scott.walkinshaw@gmail.com)”,  
“homepage”: “[https://github.com/swalkinshaw](https://github.com/swalkinshaw)”  
},  
{  
“name”: “QWp6t”,  
“email”: “[hi@qwp6t.me](mailto:hi@qwp6t.me)”,  
“homepage”: “[https://github.com/qwp6t](https://github.com/qwp6t)”  
}  
],  
“keywords”: [“wordpress”],  
“support”: {  
“issues”: “[https://github.com/roots/sage/issues](https://github.com/roots/sage/issues)”,  
“forum”: “[https://discourse.roots.io/](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](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](https://roots.io/sage/)”,  
“authors”: [  
{  
“name”: “Ben Word”,  
“email”: “[ben@benword.com](mailto:ben@benword.com)”,  
“homepage”: “[https://github.com/retlehs](https://github.com/retlehs)”  
},  
{  
“name”: “Scott Walkinshaw”,  
“email”: “[scott.walkinshaw@gmail.com](mailto:scott.walkinshaw@gmail.com)”,  
“homepage”: “[https://github.com/swalkinshaw](https://github.com/swalkinshaw)”  
},  
{  
“name”: “QWp6t”,  
“email”: “[hi@qwp6t.me](mailto:hi@qwp6t.me)”,  
“homepage”: “[https://github.com/qwp6t](https://github.com/qwp6t)”  
}  
],  
“keywords”: [“wordpress”],  
“support”: {  
“issues”: “[https://github.com/roots/sage/issues](https://github.com/roots/sage/issues)”,  
“forum”: “[https://discourse.roots.io/](https://discourse.roots.io/)”  
},  
“autoload”: {  
“psr-4”: {  
“App\”: “app/”  
}  
},  
“repositories”: [  
{ “type”: “vcs”, “url”: “[https://github.com/jeh5256/sage-installer](https://github.com/jeh5256/sage-installer)”},  
{ “type”:“vcs”, “url”:“[https://github.com/jeh5256/sage-lib](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.

---

_[View the full topic](https://discourse.roots.io/t/php-deprecation-in-php-8/26548)._
