Skip to content

Commit 7f2ee2d

Browse files
author
Florian Eckerstorfer
committed
Revert "Don't throw exception if no settings to restore"
This reverts commit 6fe4a14.
1 parent 6fe4a14 commit 7f2ee2d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Twig/BootstrapFormExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ public function backupFormSettings()
212212
public function restoreFormSettings()
213213
{
214214
if (count($this->settingsStack) < 1) {
215-
return;
215+
throw new \UnderflowException("No settings on the stack to restore");
216216
}
217217

218218
$settings = array_pop($this->settingsStack);

0 commit comments

Comments
 (0)