Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
orkhanahmadov authored Feb 1, 2024
1 parent 5c46b6e commit 47cb07c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Only PHP 8.2 and 8.3 are supported.

### Using cache for Rector

By default, Rector uses in-memory cache.
By default, Rector uses an in-memory cache.
You can use file cache for Rector by calling the `useFileCache()` method on the factory object and providing the path to the cache directory:

```php
Expand All @@ -65,7 +65,7 @@ use Rector\Config\RectorConfig;

return static function (RectorConfig $rectorConfig): void {
$factory = new Airlst\RectorConfig\Factory(['src']);
$factory->php82()->useFileCache('cache/rector')->create($rectorConfig);
$factory->useFileCache('cache/rector')->create($rectorConfig);
};
```

Expand Down

0 comments on commit 47cb07c

Please sign in to comment.