Skip to content

Commit 24534b5

Browse files
committed
Merge branch 'fix-abandoned-packages'
2 parents e68896b + 33aa0da commit 24534b5

File tree

5 files changed

+26
-28
lines changed

5 files changed

+26
-28
lines changed

.travis.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ matrix:
1717
fast_finish: true
1818
include:
1919
- php: 7.1
20-
env: ES_VERSION="7.5.1"
20+
env: ES_VERSION="7.5.2"
2121
- php: 7.2
22-
env: ES_VERSION="7.5.1"
22+
env: ES_VERSION="7.5.2"
2323
- php: 7.3
24-
env: ES_VERSION="7.5.1"
24+
env: ES_VERSION="7.5.2"
2525
- php: 7.4
26-
env: ES_VERSION="7.5.1"
26+
env: ES_VERSION="7.5.2"
2727
- php: 7.4
2828
env: ES_VERSION="8.0.0-SNAPSHOT"
2929
allow_failures:
@@ -38,7 +38,8 @@ before_install:
3838
- ./travis/run_es_docker.sh
3939

4040
install:
41-
- composer install --prefer-dist
41+
- if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN} >/dev/null 2>&1; fi;
42+
- composer install --prefer-dist --no-interaction >/dev/null 2>&1
4243

4344
before_script:
4445
- if [ $TRAVIS_PHP_VERSION = '7.4' ]; then PHPUNIT_FLAGS="--coverage-clover ./build/logs/clover.xml"; fi
@@ -47,10 +48,7 @@ before_script:
4748

4849
script:
4950
- if [ $TRAVIS_PHP_VERSION != '7.4' ]; then composer run-script phpcs; fi
50-
- if [ $TRAVIS_PHP_VERSION = '7.1' ]; then composer run-script phpstan7.1; fi
51-
- if [ $TRAVIS_PHP_VERSION = '7.2' ]; then composer run-script phpstan7.1; fi
52-
- if [ $TRAVIS_PHP_VERSION = '7.3' ]; then composer run-script phpstan; fi
53-
- if [ $TRAVIS_PHP_VERSION = '7.4' ]; then composer run-script phpstan; fi
51+
- composer run-script phpstan
5452
- vendor/bin/phpunit $PHPUNIT_FLAGS
5553
- vendor/bin/phpunit -c phpunit-integration.xml --group sync $PHPUNIT_FLAGS
5654

composer.json

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,28 @@
1212
"name": "Enrico Zimuel"
1313
}
1414
],
15+
"repositories": [
16+
{
17+
"type": "vcs",
18+
"url": "https://github.com/ezimuel/RingPHP"
19+
},
20+
{
21+
"type": "vcs",
22+
"url": "https://github.com/ezimuel/streams"
23+
}
24+
],
1525
"require": {
1626
"php": "^7.1",
1727
"ext-json": ">=1.3.7",
18-
"guzzlehttp/ringphp": "~1.0",
28+
"guzzlehttp/ringphp": "dev-fork-elasticsearch",
29+
"guzzlehttp/streams": "@dev",
1930
"psr/log": "~1.0"
2031
},
2132
"require-dev": {
2233
"cpliakas/git-wrapper": "~2.0",
2334
"doctrine/inflector": "^1.3",
2435
"mockery/mockery": "^1.2",
25-
"phpstan/phpstan-shim": "^0.11",
36+
"phpstan/phpstan": "^0.12",
2637
"phpunit/phpunit": "^7.5",
2738
"squizlabs/php_codesniffer": "^3.4",
2839
"symfony/finder": "~4.0",
@@ -56,10 +67,10 @@
5667
"phpcs --standard=ruleset.xml --extensions=php --encoding=utf-8 --tab-width=4 -sp tests"
5768
],
5869
"phpstan7.1": [
59-
"@php vendor/phpstan/phpstan-shim/phpstan.phar analyse -c phpstan-src-71.neon src --level 2 --no-progress"
70+
"@php vendor/bin/phpstan analyse -c phpstan-src-71.neon src --level 2 --no-progress"
6071
],
6172
"phpstan": [
62-
"@php vendor/phpstan/phpstan-shim/phpstan.phar analyse -c phpstan-src.neon src --level 2 --no-progress"
73+
"@php vendor/bin/phpstan analyse -c phpstan-src.neon src --level 2 --no-progress"
6374
]
6475
}
6576
}

phpstan-src-71.neon

Lines changed: 0 additions & 11 deletions
This file was deleted.

phpstan-src.neon

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ parameters:
77
-
88
message: '#is not subtype of Throwable#'
99
path: %currentWorkingDirectory%/src/Elasticsearch/ClientBuilder.php
10+
-
11+
message: '#Unsafe usage of new static()#'
12+
path: %currentWorkingDirectory%/src/Elasticsearch/ClientBuilder.php

src/Elasticsearch/Transport.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,8 @@ public function resultOrFuture(FutureArrayInterface $result, array $options = []
143143
do {
144144
$result = $result->wait();
145145
} while ($result instanceof FutureArrayInterface);
146-
147-
return $result;
148-
} elseif ($async === true || $async === 'lazy') {
149-
return $result;
150146
}
147+
return $result;
151148
}
152149

153150
public function shouldRetry(array $request): bool

0 commit comments

Comments
 (0)