Upgrade Guide
*************
.[perex]
Nette is split into independent packages, each with its own version history. When upgrading, follow the upgrade notes for the individual packages you use.
Always upgrade gradually, one version at a time: not from 3.0 straight to 3.2, but first to 3.1 and then to 3.2.
.[tip]
When you upgrade from Nette 3.0 on, a large part of the work can be done for you by [DressCode |tools:coding-standard#Newer PHP and Nette]. With the `dresscode/upgrade-nette` package, it rewrites your code to the new API of the Nette libraries, from renamed classes and constants to changed method calls, and what it cannot rewrite, it reports together with what to write instead. See [Upgrading Nette |https://dresscode.run/en/upgrading-nette].
Before testing, we recommend disabling `E_USER_DEPRECATED` reporting and re-enabling it once everything works:
```php
$configurator->enableTracy();
error_reporting(~E_USER_DEPRECATED); // note the ~ before E_USER_DEPRECATED
```
Package Upgrade Guides
----------------------
- [Application |application:upgrading]
- [Bootstrap |bootstrap:upgrading]
- [Caching |caching:upgrading]
- [Component Model |component-model:upgrading]
- [Database |database:upgrading]
- [Dependency Injection |dependency-injection:upgrading]
- [Forms |forms:upgrading]
- [HTTP |http:upgrading]
- [Mail |mail:upgrading]
- [NEON |neon:upgrading]
- [PHP Generator |php-generator:upgrading]
- [RobotLoader |robot-loader:upgrading]
- [SafeStream |safe-stream:upgrading]
- [Security |security:upgrading]
- [Tracy |tracy:upgrading]
- [Utils |utils:upgrading]
{{maintitle: Upgrading Nette: Upgrade Guide for All Packages}}
{{description: Nette is split into independent packages, each with its own version history. Upgrade notes for the packages you use, all linked from one place.}}
Upgrade Guide
Nette is split into independent packages, each with its own version history. When upgrading, follow the upgrade
notes for the individual packages you use.
Always upgrade gradually, one version at a time: not from 3.0 straight to 3.2, but first to 3.1 and then to 3.2.
When you upgrade from Nette 3.0 on, a large part of the work can be done for you by DressCode. With the
dresscode/upgrade-nette package, it rewrites your code to the new API of the Nette libraries, from renamed classes
and constants to changed method calls, and what it cannot rewrite, it reports together with what to write instead. See Upgrading Nette.
Before testing, we recommend disabling E_USER_DEPRECATED reporting and re-enabling it once everything works:
$configurator->enableTracy();
error_reporting(~E_USER_DEPRECATED); // note the ~ before E_USER_DEPRECATED
Package Upgrade Guides