Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Extracted OptionsResolver component out of Form #3968

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
May 15, 2012
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[OptionsResolver] Fixed clear() and remove() method in Options class
  • Loading branch information
webmozart committed May 14, 2012
commit d60626efd5a17fcca018e8d6edeb693de90f53ef
Empty file.
5 changes: 4 additions & 1 deletion src/Symfony/Component/OptionsResolver/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public function replace(array $options)
}

$this->options = array();

foreach ($options as $option => $value) {
$this->set($option, $value);
}
Expand Down Expand Up @@ -219,6 +219,7 @@ public function remove($option)

unset($this->options[$option]);
unset($this->lock[$option]);
unset($this->lazy[$option]);
}

/**
Expand All @@ -235,6 +236,8 @@ public function clear()
}

$this->options = array();
$this->lock = array();
$this->lazy = array();
}

/**
Expand Down