Skip to content

Commit 810e63b

Browse files
committed
Added Rector mention
1 parent d97dbbb commit 810e63b

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

docs/update_and_migration/from_4.6/update_from_4.6.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,3 +291,34 @@ For more information, see the [published security advisory IBEXA-SA-2025-002](ht
291291
Evaluate the vulnerability to determine whether you might have been affected.
292292
If so, take appropriate action.
293293
There are no additional update steps to execute.
294+
295+
### [[= product_name_base =]] Rector
296+
297+
The new [Ibexa Rector](https://github.com/ibexa/rector/) package is now available.
298+
It's an optional package based on [Rector](https://getrector.com/) and comes with additional rules for working with Ibexa code.
299+
300+
You can use it to get rid of PHP code deprecations and start preparing your project for the next major release.
301+
302+
!!! note
303+
304+
[[= product_name_base =]] Rector requires PHP 8.3 and you must upgrade your codebase first.
305+
To do it, you can use Rector and the [existing PHP upgrade sets](https://getrector.com/documentation/integration-to-new-project#content-2-upgrade-php-first).
306+
307+
To get started with [[= product_name_base =]] Rector, execute the following steps:
308+
309+
1. Add the Composer dependency:
310+
``` bash
311+
composer require --dev ibexa/rector:^4.6
312+
```
313+
314+
2. Adjust the created `rector.php` configuration file to match your project structure
315+
316+
3. Run Rector in the dry-run mode to preview the changes:
317+
``` bash
318+
vendor/bin/rector --dry-run
319+
```
320+
321+
4. Run Rector:
322+
``` bash
323+
vendor/bin/rector
324+
```

0 commit comments

Comments
 (0)