This repository was archived by the owner on Jan 30, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +11
-12
lines changed Expand file tree Collapse file tree 3 files changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -4,13 +4,12 @@ language: php
4
4
5
5
branches :
6
6
except :
7
- - /^release-\d+\.\d+\.\d+ .*$/
7
+ - /^release-.*$/
8
8
- /^ghgfk-.*$/
9
9
10
10
cache :
11
11
directories :
12
- - $HOME/.composer/cache
13
- - vendor
12
+ - $HOME/.composer/
14
13
- $HOME/.local
15
14
- zf-mkdoc-theme
16
15
@@ -60,17 +59,17 @@ matrix:
60
59
- php : 7.1
61
60
env :
62
61
- DEPS=latest
63
- - php : hhvm
62
+ - php : 7.2
64
63
env :
65
64
- DEPS=lowest
66
- - php : hhvm
65
+ - php : 7.2
67
66
env :
68
67
- DEPS=locked
69
- - php : hhvm
68
+ - php : 7.2
70
69
env :
71
70
- DEPS=latest
72
71
allow_failures :
73
- - php : hhvm
72
+ - php : 7.2
74
73
75
74
before_install :
76
75
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
@@ -80,13 +79,12 @@ install:
80
79
- travis_retry composer install $COMPOSER_ARGS --ignore-platform-reqs
81
80
- if [[ $TRAVIS_PHP_VERSION =~ ^5.6 ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
82
81
- 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
84
83
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi
85
84
- composer show
86
85
87
86
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
90
88
- if [[ $CS_CHECK == 'true' ]]; then composer cs-check ; fi
91
89
- 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
92
90
Original file line number Diff line number Diff line change @@ -328,7 +328,7 @@ public function setHydrator(HydratorInterface $hydrator)
328
328
* @param array $values
329
329
* @return mixed
330
330
*/
331
- public function bindValues (array $ values = [])
331
+ public function bindValues (array $ values = [], array $ validationGroup = null )
332
332
{
333
333
if (! is_object ($ this ->object )) {
334
334
if ($ this ->baseFieldset === null || $ this ->baseFieldset ->allowValueBinding () == false ) {
Original file line number Diff line number Diff line change @@ -216,7 +216,8 @@ public function testScalarOptionValues($options)
216
216
$ element = new SelectElement ('foo ' );
217
217
$ element ->setValueOptions ($ options );
218
218
$ markup = $ this ->helper ->render ($ element );
219
- list ($ value , $ label ) = each ($ options );
219
+ $ value = key ($ options );
220
+ $ label = current ($ options );
220
221
$ this ->assertRegexp (sprintf ('#option .*?value="%s"# ' , (string ) $ value ), $ markup );
221
222
}
222
223
You can’t perform that action at this time.
0 commit comments