Skip to content

Commit 834119a

Browse files
authored
Merge pull request #14 from php-middleware/php8
Allow install php8
2 parents b4cfa47 + 20d46e4 commit 834119a

14 files changed

+17
-33
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ composer.lock
33
tmp/
44
phpunit-coverage-clover.xml
55
.idea
6-
6+
.phpunit.result.cache

.scrutinizer.yml

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

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ php:
55
- 7.2
66
- 7.3
77
- 7.4
8+
- 8.0
89

910
env:
1011
- DEPS=lowest

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
# Request ID middleware for PHP
22

33
[![Build Status](https://travis-ci.org/php-middleware/request-id.svg?branch=master)](https://travis-ci.org/php-middleware/request-id)
4-
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/php-middleware/request-id/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/php-middleware/request-id/?branch=master)
5-
[![Code Coverage](https://scrutinizer-ci.com/g/php-middleware/request-id/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/php-middleware/request-id/?branch=master)
6-
[![Build Status](https://scrutinizer-ci.com/g/php-middleware/request-id/badges/build.png?b=master)](https://scrutinizer-ci.com/g/php-middleware/request-id/build-status/master)
74

85
PSR-7 Request ID middleware
96

@@ -23,7 +20,7 @@ must create a new `RequestIdProviderInterface` object. We provide `RequestIdProv
2320
```php
2421
$generator = new PhpMiddleware\RequestId\Generator\PhpUniqidGenerator();
2522
$requestIdProvider = new PhpMiddleware\RequestId\RequestIdProviderFactory($generator);
26-
$requestIdMiddleware = new PhpMiddleware\LogHttpMessages\RequestIdMiddleware($requestIdProvider);
23+
$requestIdMiddleware = new PhpMiddleware\RequestId\RequestIdMiddleware($requestIdProvider);
2724

2825
$app = new MiddlewareRunner();
2926
$app->add($requestIdMiddleware);

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
"request-id"
1111
],
1212
"require": {
13-
"php": "^7.1",
13+
"php": "^7.1 | ^8.0",
1414
"psr/http-message": "^1.0",
1515
"psr/http-server-handler": "^1.0",
1616
"psr/http-server-middleware": "^1.0"
1717
},
1818
"require-dev": {
19-
"ramsey/uuid": "^3.0",
20-
"zendframework/zend-diactoros": "^2.0",
21-
"phpunit/phpunit": "^7.5.13"
19+
"ramsey/uuid": "^3.9.3",
20+
"laminas/laminas-diactoros": "^2.2.1",
21+
"phpunit/phpunit": "^7.5.20 | ^8.5.8 | ^9.4.2"
2222
},
2323
"suggest": {
2424
"ramsey/uuid": "To use Ramsey\\Uuid 3.0 generator"

phpunit.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<phpunit bootstrap="./vendor/autoload.php" colors="true">
44
<testsuites>
5-
<testsuite>
5+
<testsuite name="Unit tests">
66
<directory>./test</directory>
77
</testsuite>
88
</testsuites>

test/Generator/Md5GeneratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Md5GeneratorTest extends TestCase
1010
{
1111
protected $generator;
1212

13-
protected function setUp()
13+
protected function setUp(): void
1414
{
1515
$decoratedGenerator = $this->createMock(GeneratorInterface::class);
1616
$decoratedGenerator->method('generateRequestId')->willReturn('boo');

test/Generator/PhpUniqidGeneratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class PhpUniqidGeneratorTest extends TestCase
99
{
1010
protected $generator;
1111

12-
protected function setUp()
12+
protected function setUp(): void
1313
{
1414
$this->generator = new PhpUniqidGenerator();
1515
}

test/Generator/PrefixedGeneratorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class PrefixedGeneratorTest extends TestCase
1010
{
1111
protected $decoratedGenerator;
1212

13-
protected function setUp()
13+
protected function setUp(): void
1414
{
1515
$this->decoratedGenerator = $this->createMock(GeneratorInterface::class);
1616
$this->decoratedGenerator->method('generateRequestId')->willReturn('boo');
@@ -27,4 +27,4 @@ public function getGenerator($prefix)
2727
{
2828
return new PrefixedGenerator($prefix, $this->decoratedGenerator);
2929
}
30-
}
30+
}

test/Generator/RamseyFactoryUuidGeneratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class RamseyFactoryUuidGeneratorTest extends TestCase
1515
protected $factory;
1616
protected $uuid;
1717

18-
protected function setUp()
18+
protected function setUp(): void
1919
{
2020
$this->factory = $this->createMock(UuidFactoryInterface::class);
2121

0 commit comments

Comments
 (0)