Skip to content

Commit

Permalink
Update Rector Documentation
Browse files Browse the repository at this point in the history
Rector no longer supports conversion from PhpExcel (issue #3953). Documentation is updated to suggest using a non-current release of Rector for conversion.
  • Loading branch information
oleibman committed Mar 25, 2024
1 parent 9a94aea commit 6208887
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/topics/migration-from-PHPExcel.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ need to be done.

## Automated tool

[RectorPHP](https://github.com/rectorphp/rector) can be used to migrate
automatically your codebase. Assuming your files to be migrated lives
[RectorPHP](https://github.com/rectorphp/rector) can be used to automatically migrate your codebase.
Note that this support has been dropped from current releases of rector,
so you need to require an earlier release to do this.
Assuming that your files to be migrated live
in `src/`, you can run the migration like so:

```sh
composer require rector/rector rector/rector-phpoffice phpoffice/phpspreadsheet --dev
composer require rector/rector:0.15.10 rector/rector-phpoffice phpoffice/phpspreadsheet --dev

# this creates rector.php config
vendor/bin/rector init
Expand Down

0 comments on commit 6208887

Please # to comment.