Skip to content

Commit 5bde7c7

Browse files
committed
fix(symfony): upgrade command requires diff
fixes #4950
1 parent c037806 commit 5bde7c7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Core/Bridge/Symfony/Bundle/Command/UpgradeApiResourceCommand.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,12 @@ protected function execute(InputInterface $input, OutputInterface $output): int
142142
continue;
143143
}
144144

145+
if (!class_exists(Differ::class)) {
146+
$output->writeln('Run `composer required --dev sebastian/diff` or install phpunit to print a diff.');
147+
148+
return Command::FAILURE;
149+
}
150+
145151
$this->printDiff($oldCode, $newCode, $output);
146152
continue;
147153
}

0 commit comments

Comments
 (0)