Skip to content

Commit 1778617

Browse files
authored
Merge pull request #11 from jeffwidman/patch-2
Fix deprecation
2 parents 090fbce + e8bbe17 commit 1778617

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,18 @@ Add to composer.json;
3131

3232
### Configuration
3333

34-
Create a configuration file `.php_cs` in the root of your project:
34+
Create a configuration file `.php-cs-fixer.php` in the root of your project:
3535

3636
```php
3737
<?php
3838

3939
$config = new Prooph\CS\Config\Prooph();
4040
$config->getFinder()->in(__DIR__);
41-
$config->getFinder()->append(['.php_cs']);
41+
$config->getFinder()->append(['.php-cs-fixer.php']);
4242

4343
$cacheDir = getenv('TRAVIS') ? getenv('HOME') . '/.php-cs-fixer' : __DIR__;
4444

45-
$config->setCacheFile($cacheDir . '/.php_cs.cache');
45+
$config->setCacheFile($cacheDir . '/.php-cs-fixer.cache');
4646

4747
return $config;
4848
```
@@ -64,28 +64,28 @@ file that was distributed with this source code.
6464

6565
### Git
6666

67-
Add `.php_cs.cache` (this is the cache file created by `php-cs-fixer`) to `.gitignore`:
67+
Add `.php-cs-fixer.cache` (this is the cache file created by `php-cs-fixer`) to `.gitignore`:
6868

6969
```
7070
vendor/
71-
.php_cs.cache
71+
.php-cs-fixer.cache
7272
```
7373

7474
### Travis
7575

76-
Update your `.travis.yml` to cache the `php_cs.cache` file:
76+
Update your `.travis.yml` to cache the `.php-cs-fixer.cache` file:
7777

7878
```yml
7979
cache:
8080
directories:
81-
- $HOME/.php-cs-fixer
81+
- $HOME/.php-cs-fixer.cache
8282
```
8383
8484
Then run `php-cs-fixer` in the `script` section:
8585

8686
```yml
8787
script:
88-
- vendor/bin/php-cs-fixer fix --config=.php_cs --verbose --diff --dry-run
88+
- vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php --verbose --diff --dry-run
8989
```
9090

9191
## Fixing issues
@@ -129,7 +129,7 @@ fi
129129
130130
if $HAS_PHP_CS_FIXER; then
131131
git status --porcelain | grep -e '^[AM]\(.*\).php$' | cut -c 3- | while read line; do
132-
${PHP_CS_FIXER} fix --config-file=.php_cs --verbose ${line};
132+
${PHP_CS_FIXER} fix --config-file=.php-cs-fixer.php --verbose ${line};
133133
git add "$line";
134134
done
135135
else

0 commit comments

Comments
 (0)