mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +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 ($docblock_update_count) {
|
||||||
if ($dry_run) {
|
if ($dry_run) {
|
||||||
echo $file_path . ':' . PHP_EOL;
|
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);
|
echo (string) $differ->diff($this->getFileContents($file_path), $existing_contents);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user