Skip to content

Commit b81cdda

Browse files
authored
Merge pull request #897 from ezimuel/master
Code refactor + updated endpoints for 7.0.0
2 parents 32fd80e + 37c1ac0 commit b81cdda

File tree

203 files changed

+4271
-6701
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

203 files changed

+4271
-6701
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Thumbs.db
2121
generator/*
2222

2323
# Elasticsearch related
24-
util/elasticsearch
24+
util/elasticsearch/
2525
util/cache/
2626
util/output
2727

@@ -30,3 +30,6 @@ util/output
3030

3131
# PHPUnit
3232
/phpunit.xml
33+
34+
# Code coverage
35+
build

.travis.yml

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,17 @@ sudo: true
1212
matrix:
1313
fast_finish: true
1414
include:
15-
- php: 7.0
16-
env: ES_VERSION="6.7.0"
17-
1815
- php: 7.1
19-
env: ES_VERSION="6.7.0"
16+
env: ES_VERSION="7.0.0"
2017

2118
- php: 7.2
22-
env: ES_VERSION="6.7.0"
19+
env: ES_VERSION="7.0.0"
2320

2421
- php: 7.3
25-
env: ES_VERSION="6.0.0"
26-
- php: 7.3
27-
env: ES_VERSION="6.1.0"
28-
- php: 7.3
29-
env: ES_VERSION="6.2.0"
30-
- php: 7.3
31-
env: ES_VERSION="6.3.0"
32-
- php: 7.3
33-
env: ES_VERSION="6.4.0"
34-
- php: 7.3
35-
env: ES_VERSION="6.5.0"
36-
- php: 7.3
37-
env: ES_VERSION="6.6.0"
22+
env: ES_VERSION="7.0.0"
23+
allow_failures:
3824
- php: 7.3
39-
env: ES_VERSION="6.7.0"
25+
env: ES_VERSION="7.1.0"
4026

4127
env:
4228
global:
@@ -55,7 +41,9 @@ before_script:
5541

5642
script:
5743
- if [ $TRAVIS_PHP_VERSION != '7.3' ]; then composer run-script phpcs; fi
58-
- composer run-script phpstan
44+
- if [ $TRAVIS_PHP_VERSION = '7.1' ]; then composer run-script phpstan7.1; fi
45+
- if [ $TRAVIS_PHP_VERSION = '7.2' ]; then composer run-script phpstan7.1; fi
46+
- if [ $TRAVIS_PHP_VERSION = '7.3' ]; then composer run-script phpstan; fi
5947
- vendor/bin/phpunit $PHPUNIT_FLAGS
6048
- vendor/bin/phpunit -c phpunit-integration.xml --group sync $PHPUNIT_FLAGS
6149

composer.json

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,20 @@
1313
}
1414
],
1515
"require": {
16-
"php": "^7.0",
16+
"php": "^7.1",
1717
"ext-json": ">=1.3.7",
1818
"guzzlehttp/ringphp": "~1.0",
1919
"psr/log": "~1.0"
2020
},
2121
"require-dev": {
22-
"cpliakas/git-wrapper": "^1.7 || ^2.1",
23-
"doctrine/inflector": "^1.1",
22+
"cpliakas/git-wrapper": "~2.0",
23+
"doctrine/inflector": "^1.3",
2424
"mockery/mockery": "^1.2",
25-
"phpstan/phpstan-shim": "^0.9 || ^0.11",
26-
"phpunit/phpunit": "^5.7 || ^6.5",
25+
"phpstan/phpstan-shim": "^0.11",
26+
"phpunit/phpunit": "^7.5",
2727
"squizlabs/php_codesniffer": "^3.4",
28-
"symfony/finder": "^2.8",
29-
"symfony/yaml": "^2.8"
28+
"symfony/finder": "~4.0",
29+
"symfony/yaml": "~4.0"
3030
},
3131
"suggest": {
3232
"ext-curl": "*",
@@ -51,6 +51,9 @@
5151
"phpcs --standard=ruleset.xml --extensions=php --encoding=utf-8 --tab-width=4 -sp src",
5252
"phpcs --standard=ruleset.xml --extensions=php --encoding=utf-8 --tab-width=4 -sp tests"
5353
],
54+
"phpstan7.1": [
55+
"@php vendor/phpstan/phpstan-shim/phpstan.phar analyse -c phpstan-src-71.neon src --level 2 --no-progress"
56+
],
5457
"phpstan": [
5558
"@php vendor/phpstan/phpstan-shim/phpstan.phar analyse -c phpstan-src.neon src --level 2 --no-progress"
5659
]

phpstan-src-71.neon

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
parameters:
2+
ignoreErrors:
3+
4+
# nullable types are missing everywhere
5+
# this should be removed and fixed in the code later
6+
- '#Variable (.*) in isset\(\) always exists and is not nullable.#'
7+
- '#Constant JSON_THROW_ON_ERROR not found#'
8+
- '#class JsonException#'

0 commit comments

Comments
 (0)