PHP-CS-Fixer: wrong files included
Hey,
For a project, I have the following configuration:
// .php_cs.dist
<?php
declare(strict_types=1);
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$finder = Finder::create()
->in([
__DIR__.'/src',
__DIR__.'/tests'
])
;
return Config::create()
->setRiskyAllowed(true)
->setRules([...])
->setFinder($finder)
;
Yet, when I run it, I can see that the file var/SymfonyRequirements.php
is affected. Is it the expected behaviour? (I wouldn’t expect other directories than the one specified to be appended).
$ php -v
PHP 7.1.0-dev (cli) (built: Jan 3 2017 09:51:30) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.1.0-dev, Copyright (c) 1998-2016 Zend Technologies
PHP CS Fixer version you are using:
$ php-cs-fixer -V
PHP CS Fixer 2.0.0
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 16 (15 by maintainers)
Closing as #4940 was merged.
the error report is fine, i was just curious about your usage case, thanks for explaining 😉