Skip to content

Commit 4df69ae

Browse files
authored
PHP version support (#8)
PHP version support
1 parent eda72b4 commit 4df69ae

File tree

5 files changed

+19
-25
lines changed

5 files changed

+19
-25
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
.idea
22
composer.lock
33
vendor
4-
data
4+
data

.travis.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@ language: php
33
matrix:
44
fast_finish: true
55
include:
6-
- php: 5.5
7-
env:
8-
- DEPS=lowest
9-
- php: 5.5
10-
env:
11-
- DEPS=latest
126
- php: 5.6
137
env:
148
- DEPS=lowest
@@ -21,17 +15,22 @@ matrix:
2115
- php: 7
2216
env:
2317
- DEPS=latest
24-
- php: hhvm
18+
- php: 7.1
19+
env:
20+
- DEPS=lowest
21+
- php: 7.1
22+
env:
23+
- DEPS=latest
24+
- php: 7.2
2525
env:
2626
- DEPS=lowest
27-
- php: hhvm
27+
- php: 7.2
2828
env:
2929
- DEPS=latest
3030

3131
install:
32-
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update --no-interaction --prefer-source ; fi
33-
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --no-interaction --prefer-source --prefer-lowest ; fi
34-
- composer info -i
32+
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update --no-interaction ; fi
33+
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --no-interaction --prefer-lowest ; fi
3534

3635
script:
3736
- ./vendor/bin/phpunit

Module.php

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

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
22
"name": "rstgroup/request-id-module",
33
"require": {
4-
"php": ">=5.5",
5-
"zendframework/zend-modulemanager": "^2.4",
4+
"php": ">=5.6",
65
"zendframework/zend-eventmanager": "^2.4 || ^3",
76
"zendframework/zend-http": "^2.4",
87
"zendframework/zend-mvc": "^2.4 || ^3",
98
"zendframework/zend-servicemanager": "^2.4 || ^3",
109
"zendframework/zend-stdlib": "^2.4 || ^3",
11-
"zendframework/zend-psr7bridge": "^0.2",
12-
"php-middleware/request-id": "^3.0.0"
10+
"zendframework/zend-psr7bridge": "^1.0",
11+
"php-middleware/request-id": "^3.0"
1312
},
1413
"require-dev": {
15-
"phpunit/phpunit": "^4.8",
16-
"zendframework/zend-config": "^2.4",
14+
"phpunit/phpunit": "^5.7.22",
15+
"zendframework/zend-modulemanager": "^2.4",
16+
"zendframework/zend-config": "^2.4 | ^3.0",
1717
"zendframework/zend-i18n": "^2.4",
1818
"zendframework/zend-log": "^2.4",
1919
"zendframework/zend-serializer": "^2.4",

src/Module.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
namespace RstGroup\RequestIdModule;
44

5-
use Zend\ModuleManager\Feature\ConfigProviderInterface;
6-
7-
final class Module implements ConfigProviderInterface
5+
final class Module
86
{
97
/**
108
* @return array
@@ -13,4 +11,4 @@ public function getConfig()
1311
{
1412
return include __DIR__ . '/../config/module.config.php';
1513
}
16-
}
14+
}

0 commit comments

Comments
 (0)