We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abb89cd commit 41e11deCopy full SHA for 41e11de
src/Listener/CodePatchListener.php
@@ -63,7 +63,7 @@ public function patch(ExerciseRunnerEvent $event): void
63
public function revert(\PhpSchool\PhpWorkshop\Event\EventInterface $event): void
64
{
65
if (null === $this->originalCode || empty($this->originalCode)) {
66
- throw new RuntimeException('Can only revert previously patched code');
+ return;
67
}
68
69
foreach ($this->originalCode as $fileName => $contents) {
0 commit comments