From c615356b37d627450437a85fd1245feeb615f6cf Mon Sep 17 00:00:00 2001 From: Patrick MARIE Date: Sat, 9 Apr 2016 07:53:33 +0200 Subject: [PATCH] Using new PhpCsFixer\Runner\Runner instead of removed PhpCsFixer\Fixer. --- src/JaneOpenApi.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/JaneOpenApi.php b/src/JaneOpenApi.php index 34f3dad..13c847f 100644 --- a/src/JaneOpenApi.php +++ b/src/JaneOpenApi.php @@ -23,8 +23,11 @@ use PhpCsFixer\Config; use PhpCsFixer\ConfigInterface; use PhpCsFixer\Console\ConfigurationResolver; +use PhpCsFixer\Differ\NullDiffer; +use PhpCsFixer\Error\ErrorsManager; use PhpCsFixer\Finder; -use PhpCsFixer\Fixer; +use PhpCsFixer\Linter\NullLinter; +use PhpCsFixer\Runner\Runner; class JaneOpenApi { @@ -200,9 +203,9 @@ protected function fix($directory) $finder->in($directory); $fixerConfig->finder($finder); - $fixer = new Fixer(); + $runner = new Runner($fixerConfig, new NullDiffer(), null, new ErrorsManager(), new NullLinter(), false); - return $fixer->fix($fixerConfig); + return $runner->fix(); } public static function build()