mirror of
https://github.com/danog/psalm.git
synced 2025-01-21 21:31:13 +01:00
Fix differ to only use available commands
This commit is contained in:
parent
456a2ebaaa
commit
05d2c3dcb8
@ -1056,7 +1056,14 @@ class ProjectChecker
|
||||
if ($docblock_update_count) {
|
||||
if ($dry_run) {
|
||||
echo $file_path . ':' . PHP_EOL;
|
||||
$differ = new \PhpCsFixer\Differ\UnifiedDiffer();
|
||||
|
||||
$differ = new \PhpCsFixer\Diff\v2_0\Differ(
|
||||
new \PhpCsFixer\Diff\GeckoPackages\DiffOutputBuilder\UnifiedDiffOutputBuilder([
|
||||
'fromFile' => 'Original',
|
||||
'toFile' => 'New',
|
||||
])
|
||||
);
|
||||
|
||||
echo (string) $differ->diff($this->getFileContents($file_path), $existing_contents);
|
||||
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user