Skip to content

Commit 46bac65

Browse files
committed
Fix chronos decration error for php7.1+
1 parent 3aa61b8 commit 46bac65

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ before_script:
5151
- if [[ $PHPCS = 1 ]]; then composer require cakephp/cakephp-codesniffer:"^3.0"; fi
5252
- if [[ $PHPSTAN = 1 ]]; then composer require phpstan/phpstan; fi
5353

54+
# see: https://github.com/cakephp/chronos/issues/106
55+
- if [[ $TRAVIS_PHP_VERSION != 7.0 && $PREFER_LOWEST != "" ]]; then composer require --prefer-stable --prefer-dist --no-interaction $PREFER_LOWEST cakephp/chronos:^1.0.1; fi
56+
5457
script:
5558
- if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION != 7.3 ]]; then vendor/bin/phpunit; fi
5659
- if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION = 7.3 ]]; then vendor/bin/phpunit --coverage-clover=clover.xml; fi

0 commit comments

Comments
 (0)