Skip to content

Commit 1aa3d2c

Browse files
committed
Updated http-middleware interface to 0.4 and php-cs-fixer to 2.0
1 parent e98cb88 commit 1aa3d2c

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
vendor
22
composer.lock
3+
.php_cs.cache

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
99
### Changed
1010

1111
* Updated tests
12+
* Updated to `http-interop/http-middleware#0.4`
13+
* Updated `friendsofphp/php-cs-fixer#2.0`
1214

1315
## 0.2.0 - 2016-11-27
1416

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
1919
},
2020
"require": {
2121
"php": "^5.6 || ^7.0",
22-
"http-interop/http-middleware": "^0.3",
22+
"http-interop/http-middleware": "^0.4",
2323
"willdurand/geocoder": "^3.3"
2424
},
2525
"require-dev": {
2626
"phpunit/phpunit": "^5.5",
2727
"zendframework/zend-diactoros": "^1.3",
28-
"friendsofphp/php-cs-fixer": "^1.12",
28+
"friendsofphp/php-cs-fixer": "^2.0",
2929
"squizlabs/php_codesniffer": "^2.7",
30-
"middlewares/utils": "~0.7"
30+
"middlewares/utils": "~0.8"
3131
},
3232
"autoload": {
3333
"psr-4": {
@@ -44,6 +44,6 @@
4444
"phpunit",
4545
"phpcs"
4646
],
47-
"cs-fix": "php-cs-fixer fix . --fixers=-psr0"
47+
"cs-fix": "php-cs-fixer fix ."
4848
}
49-
}
49+
}

src/Geolocation.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44

55
use Psr\Http\Message\ServerRequestInterface;
66
use Psr\Http\Message\ResponseInterface;
7-
use Interop\Http\Middleware\ServerMiddlewareInterface;
8-
use Interop\Http\Middleware\DelegateInterface;
7+
use Interop\Http\ServerMiddleware\MiddlewareInterface;
8+
use Interop\Http\ServerMiddleware\DelegateInterface;
99
use Geocoder\Geocoder;
1010
use Geocoder\Provider\FreeGeoIp;
1111
use Ivory\HttpAdapter\FopenHttpAdapter;
1212

13-
class Geolocation implements ServerMiddlewareInterface
13+
class Geolocation implements MiddlewareInterface
1414
{
1515
/**
1616
* @var Geocoder

0 commit comments

Comments
 (0)