Skip to content

Commit 94d20f2

Browse files
committed
Added Rector mention
1 parent 233fd10 commit 94d20f2

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

+31
Original file line numberDiff line numberDiff line change
@@ -307,3 +307,34 @@ For more information, see the [published security advisory IBEXA-SA-2025-002](ht
307307
Evaluate the vulnerability to determine whether you might have been affected.
308308
If so, take appropriate action.
309309
There are no additional update steps to execute.
310+
311+
### [[= product_name_base =]] Rector
312+
313+
The new [Ibexa Rector](https://github.com/ibexa/rector/) package is now available.
314+
It's an optional package based on [Rector](https://getrector.com/) and comes with additional rules for working with Ibexa code.
315+
316+
You can use it to get rid of PHP code deprecations and start preparing your project for the next major release.
317+
318+
!!! note
319+
320+
[[= product_name_base =]] Rector requires PHP 8.3 and you must upgrade your codebase first.
321+
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).
322+
323+
To get started with [[= product_name_base =]] Rector, execute the following steps:
324+
325+
1. Add the Composer dependency:
326+
``` bash
327+
composer require --dev ibexa/rector:^4.6
328+
```
329+
330+
2. Adjust the created `rector.php` configuration file to match your project structure
331+
332+
3. Run Rector in the dry-run mode to preview the changes:
333+
``` bash
334+
vendor/bin/rector --dry-run
335+
```
336+
337+
4. Run Rector:
338+
``` bash
339+
vendor/bin/rector
340+
```

0 commit comments

Comments
 (0)