8000 [OptionsResolver] Fixed clear() and remove() method in Options class · webmozart/symfony@d60626e · GitHub 8000
[go: up one dir, main page]

Skip to content

Commit d60626e

Browse files
committed
[OptionsResolver] Fixed clear() and remove() method in Options class
1 parent 2b46975 commit d60626e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/Symfony/Component/OptionsResolver/Exception/ExceptionInterface.php

100755100644
File mode changed.

src/Symfony/Component/OptionsResolver/Options.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function replace(array $options)
111111
}
112112

113113
$this->options = array();
114-
114+
115115
foreach ($options as $option => $value) {
116116
$this->set($option, $value);
117117
}
@@ -219,6 +219,7 @@ public function remove($option)
219219

220220
unset($this->options[$option]);
221221
unset($this->lock[$option]);
222+
unset($this->lazy[$option]);
222223
}
223224

224225
/**
@@ -235,6 +236,8 @@ public function clear()
235236
}
236237

237238
$this->options = array();
239+
$this->lock = array();
240+
$this->lazy = array();
238241
}
239242

240243
/**

0 commit comments

Comments
 (0)
0