[OptionsResolver] Fixed clear() and remove() method in Options class

This commit is contained in:
Bernhard Schussek 2012-05-14 18:53:26 +02:00
parent 2b46975e32
commit d60626efd5
2 changed files with 4 additions and 1 deletions

View File

View File

@ -111,7 +111,7 @@ class Options implements ArrayAccess, Iterator, Countable
}
$this->options = array();
foreach ($options as $option => $value) {
$this->set($option, $value);
}
@ -219,6 +219,7 @@ class Options implements ArrayAccess, Iterator, Countable
unset($this->options[$option]);
unset($this->lock[$option]);
unset($this->lazy[$option]);
}
/**
@ -235,6 +236,8 @@ class Options implements ArrayAccess, Iterator, Countable
}
$this->options = array();
$this->lock = array();
$this->lazy = array();
}
/**