Skip to content

Commit b83ff7c

Browse files
authored
Merge pull request #178 from alexander-schranz/enhancement/update-type-resolver
Update dependencies
2 parents bdd9f73 + cee2089 commit b83ff7c

File tree

4 files changed

+82
-11
lines changed

4 files changed

+82
-11
lines changed

.travis.yml

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,40 @@
11
language: php
22

3-
php:
4-
- 7.0
5-
- 7.1
6-
- 7.2
3+
4+
env:
5+
global:
6+
- COMPOSER_FLAGS="--no-interaction"
77

88
matrix:
99
include:
10+
- php: 7.0
11+
env:
12+
# Test commited lock file
13+
- COMPOSER_LOCK=true
1014
- php: 7.1
11-
env: STATIC_ANALYSIS=true
15+
env:
16+
# Test lowest dependencies
17+
- COMPOSER_FLAGS="--no-interaction --prefer-lowest"
18+
# Test code standard
19+
- STATIC_ANALYSIS=true
20+
# Test with updated dependencies
21+
- php: 7.2
22+
- php: 7.3
1223

1324
cache:
1425
directories:
1526
- $HOME/.composer/cache
1627

1728
install:
18-
- composer install --no-interaction
29+
- |
30+
if [[ $COMPOSER_LOCK = true ]]; then
31+
composer install $COMPOSER_FLAGS
32+
else
33+
composer update $COMPOSER_FLAGS
34+
fi
35+
- composer $COMPOSER
1936
# coding style
20-
- if [[ $STATIC_ANALYSIS != "" ]]; then composer create-project symplify/easy-coding-standard temp/ecs; fi
37+
- if [[ $STATIC_ANALYSIS != "" ]]; then composer create-project symplify/easy-coding-standard:v2.5.9 temp/ecs; fi
2138

2239
script:
2340
- vendor/bin/phpunit --coverage-clover=coverage.xml -v

appveyor.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
build: false
2+
clone_folder: c:\reflectiondocblock
3+
max_jobs: 3
4+
platform: x86
5+
pull_requests:
6+
do_not_increment_build_number: true
7+
version: '{build}.{branch}'
8+
skip_tags: true
9+
branches:
10+
only:
11+
- master
12+
13+
environment:
14+
matrix:
15+
- php_ver_target: 7.1
16+
- php_ver_target: 7.2
17+
matrix:
18+
fast_finish: false
19+
20+
cache:
21+
- c:\php -> appveyor.yml
22+
- '%LOCALAPPDATA%\Composer\files'
23+
24+
init:
25+
- SET PATH=C:\Program Files\OpenSSL;c:\tools\php;%PATH%
26+
- SET COMPOSER_NO_INTERACTION=1
27+
- SET PHP=1
28+
- SET ANSICON=121x90 (121x90)
29+
30+
31+
install:
32+
- IF EXIST c:\tools\php (SET PHP=0)
33+
- ps: appveyor-retry cinst --params '""/InstallDir:C:\tools\php""' --ignore-checksums -y php --version ((choco search php --exact --all-versions -r | select-string -pattern $env:php_ver_target | sort { [version]($_ -split '\|' | select -last 1) } -Descending | Select-Object -first 1) -replace '[php|]','')
34+
- cd c:\tools\php
35+
- IF %PHP%==1 copy /Y php.ini-development php.ini
36+
- IF %PHP%==1 echo max_execution_time=1200 >> php.ini
37+
- IF %PHP%==1 echo date.timezone="UTC" >> php.ini
38+
- IF %PHP%==1 echo extension_dir=ext >> php.ini
39+
- IF %PHP%==1 echo extension=php_curl.dll >> php.ini
40+
- IF %PHP%==1 echo extension=php_openssl.dll >> php.ini
41+
- IF %PHP%==1 echo extension=php_mbstring.dll >> php.ini
42+
- IF %PHP%==1 echo extension=php_fileinfo.dll >> php.ini
43+
- IF %PHP%==1 echo zend.assertions=1 >> php.ini
44+
- IF %PHP%==1 echo assert.exception=On >> php.ini
45+
- IF %PHP%==1 echo @php %%~dp0composer.phar %%* > composer.bat
46+
- appveyor-retry appveyor DownloadFile https://getcomposer.org/composer.phar
47+
- cd c:\reflectiondocblock
48+
- composer install --no-interaction --prefer-dist --no-progress
49+
- composer global require phpunit/phpunit ^6
50+
- composer global config bin-dir --absolute
51+
52+
test_script:
53+
- cd c:\reflectiondocblock
54+
- c:\Users\appveyor\AppData\Roaming\Composer\vendor\bin\phpunit --no-coverage

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
],
1212
"require": {
1313
"php": "^7.0",
14-
"phpdocumentor/reflection-common": "^1.0.0",
15-
"phpdocumentor/type-resolver": "^0.4.0",
14+
"phpdocumentor/reflection-common": "^1.0.0 || ^2.0.0",
15+
"phpdocumentor/type-resolver": "~0.4 || ^1.0.0",
1616
"webmozart/assert": "^1.0"
1717
},
1818
"autoload": {
@@ -24,7 +24,7 @@
2424
"require-dev": {
2525
"mockery/mockery": "^1.0",
2626
"phpunit/phpunit": "^6.4",
27-
"doctrine/instantiator": "~1.0.5"
27+
"doctrine/instantiator": "^1.0.5"
2828
},
2929
"extra": {
3030
"branch-alias": {

tests/integration/DocblocksWithAnnotationsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function testDocblockWithAnnotations()
4444
$this->assertCount(3, $docblock->getTags());
4545
}
4646

47-
public function testDocblockWithAnnotationHavingZeroValue(): void
47+
public function testDocblockWithAnnotationHavingZeroValue()
4848
{
4949
$docComment = <<<DOCCOMMENT
5050
/**

0 commit comments

Comments
 (0)