Commit e7b03c1d authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

Evite que la config de php-cs-fixer plante en PHP 7.1.

parent cd2e1722
......@@ -7,14 +7,10 @@ $finder = PhpCsFixer\Finder::create()
->name('*.php')
->in('.');
$loader = require_once __DIR__ . '/vendor/autoload.php';
try {
return Irstea\CS\Config::create()
->setIndent(' ')
->setRiskyAllowed(true)
->setLineEnding("\n")
->setFinder($finder);
} finally {
$loader->unregister();
}
require_once __DIR__ . '/vendor/autoload.php';
return Irstea\CS\Config::create()
->setIndent(' ')
->setRiskyAllowed(true)
->setLineEnding("\n")
->setFinder($finder);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment