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

Commit 1dbf69b

Browse files
authored
Merge pull request #171 from Slamdunk/php_72
Add PHP 7.2 support, drop HHVM
2 parents 5d7cb7e + 38c0550 commit 1dbf69b

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

.travis.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@ language: php
44

55
branches:
66
except:
7-
- /^release-\d+\.\d+\.\d+.*$/
7+
- /^release-.*$/
88
- /^ghgfk-.*$/
99

1010
cache:
1111
directories:
12-
- $HOME/.composer/cache
13-
- vendor
12+
- $HOME/.composer/
1413
- $HOME/.local
1514
- zf-mkdoc-theme
1615

@@ -60,17 +59,17 @@ matrix:
6059
- php: 7.1
6160
env:
6261
- DEPS=latest
63-
- php: hhvm
62+
- php: 7.2
6463
env:
6564
- DEPS=lowest
66-
- php: hhvm
65+
- php: 7.2
6766
env:
6867
- DEPS=locked
69-
- php: hhvm
68+
- php: 7.2
7069
env:
7170
- DEPS=latest
7271
allow_failures:
73-
- php: hhvm
72+
- php: 7.2
7473

7574
before_install:
7675
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
@@ -80,13 +79,12 @@ install:
8079
- travis_retry composer install $COMPOSER_ARGS --ignore-platform-reqs
8180
- if [[ $TRAVIS_PHP_VERSION =~ ^5.6 ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
8281
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
83-
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
82+
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update $COMPOSER_ARGS --prefer-lowest --prefer-stable ; fi
8483
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi
8584
- composer show
8685

8786
script:
88-
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; fi
89-
- if [[ $TEST_COVERAGE != 'true' ]]; then composer test ; fi
87+
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi
9088
- if [[ $CS_CHECK == 'true' ]]; then composer cs-check ; fi
9189
- if [[ $DEPLOY_DOCS == "true" && "$TRAVIS_TEST_RESULT" == "0" ]]; then wget -O theme-installer.sh "https://raw.githubusercontent.com/zendframework/zf-mkdoc-theme/master/theme-installer.sh" ; chmod 755 theme-installer.sh ; ./theme-installer.sh ; fi
9290

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)