[OptionsResolver] Fixed clear() and remove() method in Options class
This commit is contained in:
parent
2b46975e32
commit
d60626efd5
0
src/Symfony/Component/OptionsResolver/Exception/ExceptionInterface.php
Executable file → Normal file
0
src/Symfony/Component/OptionsResolver/Exception/ExceptionInterface.php
Executable file → Normal 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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user