From 33afadfd8d823762a5966dc044e99ea60308de6f Mon Sep 17 00:00:00 2001 From: Pierre du Plessis Date: Tue, 13 Dec 2022 16:19:21 +0200 Subject: [PATCH] Remove invalid config reference in `README.md` (#577) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Remove invalid config reference in README * Fix: Expand example Co-authored-by: Andreas Möller --- README.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c3c199d5c1..2c6a26843e 100644 --- a/README.md +++ b/README.md @@ -81,11 +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'); -$faker($rectorConfig); +import('vendor/fakerphp/faker/rector-migrate.php'); +}; ``` ## License