Merge branch 'master' into Table-Reader-for-Xlsx

This commit is contained in:
aswinkumar863 2022-06-01 11:06:21 +05:30 committed by GitHub
commit 3a91132fdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 24 additions and 2 deletions

View File

@ -14,8 +14,30 @@ in `src/`, you can run the migration like so:
```sh ```sh
composer require rector/rector --dev composer require rector/rector --dev
vendor/bin/rector process src --set phpexcel-to-phpspreadsheet
composer remove rector/rector # this creates rector.php config
vendor/bin/rector init
```
Add `PHPOfficeSetList` set to `rector.php`
```php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\PHPOffice\Set\PHPOfficeSetList;
return static function (RectorConfig $rectorConfig): void {
$rectorConfig->sets([
PHPOfficeSetList::PHPEXCEL_TO_PHPSPREADSHEET
]);
};
```
And run Rector on your code:
```sh
vendor/bin/rector process src
``` ```
For more details, see For more details, see