From 7dc509f0c1495c22b7413259198537a8395c8e4f Mon Sep 17 00:00:00 2001 From: Pierre du Plessis Date: Tue, 13 Dec 2022 15:16:32 +0200 Subject: [PATCH 1/2] Remove invalid config reference in README --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index c3c199d5c1..d73713018f 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,6 @@ Another way is to use it in your `rector.php` file: ```php $rectorConfig->import('vendor/fakerphp/faker/rector-migrate.php'); -$faker($rectorConfig); ``` ## License From 17cd5e95690e971fb03f7bb45b1945936131f06e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Tue, 13 Dec 2022 15:17:22 +0100 Subject: [PATCH 2/2] Fix: Expand example --- README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d73713018f..2c6a26843e 100644 --- a/README.md +++ b/README.md @@ -81,10 +81,18 @@ to run `rector/rector`. *Note:* do not forget to replace `src/` with the path to your source directory. -Another way is to use it in your `rector.php` file: +Alternatively, import the configuration in your `rector.php` file: ```php -$rectorConfig->import('vendor/fakerphp/faker/rector-migrate.php'); +import('vendor/fakerphp/faker/rector-migrate.php'); +}; ``` ## License