Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Prepare to PHP 7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Slamdunk committed Jun 22, 2017
1 parent 7038329 commit fbda16c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Form.php
Expand Up @@ -328,7 +328,7 @@ public function setHydrator(HydratorInterface $hydrator)
* @param array $values
* @return mixed
*/
public function bindValues(array $values = [])
public function bindValues(array $values = [], array $validationGroup = null)
{
if (! is_object($this->object)) {
if ($this->baseFieldset === null || $this->baseFieldset->allowValueBinding() == false) {
Expand Down
3 changes: 2 additions & 1 deletion test/View/Helper/FormSelectTest.php
Expand Up @@ -216,7 +216,8 @@ public function testScalarOptionValues($options)
$element = new SelectElement('foo');
$element->setValueOptions($options);
$markup = $this->helper->render($element);
list($value, $label) = each($options);
$value = key($options);
$label = current($options);
$this->assertRegexp(sprintf('#option .*?value="%s"#', (string) $value), $markup);
}

Expand Down

0 comments on commit fbda16c

Please sign in to comment.