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

Commit fbda16c

Browse files
committed
Prepare to PHP 7.2
1 parent 7038329 commit fbda16c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ public function setHydrator(HydratorInterface $hydrator)
328328
* @param array $values
329329
* @return mixed
330330
*/
331-
public function bindValues(array $values = [])
331+
public function bindValues(array $values = [], array $validationGroup = null)
332332
{
333333
if (! is_object($this->object)) {
334334
if ($this->baseFieldset === null || $this->baseFieldset->allowValueBinding() == false) {

test/View/Helper/FormSelectTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,8 @@ public function testScalarOptionValues($options)
216216
$element = new SelectElement('foo');
217217
$element->setValueOptions($options);
218218
$markup = $this->helper->render($element);
219-
list($value, $label) = each($options);
219+
$value = key($options);
220+
$label = current($options);
220221
$this->assertRegexp(sprintf('#option .*?value="%s"#', (string) $value), $markup);
221222
}
222223

0 commit comments

Comments
 (0)