Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 21 additions & 3 deletions resources/docs/levels.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
What is a PHP 8.3 project without a single type declaration?

A horse with Tesla bodywork.
> "What is a PHP 8.4 project without a single type declaration?"
>
> "A horse with Tesla bodywork."

<br>

Expand Down Expand Up @@ -89,3 +89,21 @@ return RectorConfig::configure()
We increase it by 1, run Rector, create a pull request, get a review, and merge.

Once we reach the highest level, we can move on to [next prepared sets](/documentation/set-lists#content-prepared-sets).

<br>

## Leveling up PHP Upgrade

One of the main Rector features &ndash; PHP upgrades &ndash; is also covered via levels:


```php
<?php

use Rector\Config\RectorConfig;

return RectorConfig::configure()
->withPhpLevel(5);
```

This way you can handle enormous project upgrades effortlessly, step by step.