Skip to content

Commit 9d97db5

Browse files
committed
Replace zendframework/zend-diactoros with laminas/laminas-diactoros
1 parent a0259a0 commit 9d97db5

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@
2121
},
2222
"require-dev": {
2323
"infection/infection": "^0.13",
24+
"laminas/laminas-diactoros": "^2.2",
2425
"lcobucci/coding-standard": "^3.0",
2526
"phpstan/phpstan": "^0.11",
2627
"phpstan/phpstan-deprecation-rules": "^0.11",
2728
"phpstan/phpstan-phpunit": "^0.11",
2829
"phpstan/phpstan-strict-rules": "^0.11",
2930
"phpunit/phpunit": "^8.2",
30-
"squizlabs/php_codesniffer": "^3.4",
31-
"zendframework/zend-diactoros": "^2.0"
31+
"squizlabs/php_codesniffer": "^3.4"
3232
},
3333
"autoload": {
3434
"psr-4": {

tests/ErrorConversionMiddlewareTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
namespace Lcobucci\ErrorHandling\Tests;
55

66
use Fig\Http\Message\StatusCodeInterface;
7+
use Laminas\Diactoros\Response;
8+
use Laminas\Diactoros\ResponseFactory;
9+
use Laminas\Diactoros\ServerRequest;
710
use Lcobucci\ContentNegotiation\UnformattedResponse;
811
use Lcobucci\ErrorHandling\DebugInfoStrategy;
912
use Lcobucci\ErrorHandling\DebugInfoStrategy\NoDebugInfo;
@@ -16,9 +19,6 @@
1619
use Psr\Http\Server\RequestHandlerInterface;
1720
use RuntimeException;
1821
use Throwable;
19-
use Zend\Diactoros\Response;
20-
use Zend\Diactoros\ResponseFactory;
21-
use Zend\Diactoros\ServerRequest;
2222

2323
/**
2424
* @coversDefaultClass \Lcobucci\ErrorHandling\ErrorConversionMiddleware

tests/ErrorLoggingMiddlewareTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33

44
namespace Lcobucci\ErrorHandling\Tests;
55

6+
use Laminas\Diactoros\Response;
7+
use Laminas\Diactoros\ServerRequest;
68
use Lcobucci\ErrorHandling\ErrorLoggingMiddleware;
79
use PHPUnit\Framework\MockObject\MockObject;
810
use PHPUnit\Framework\TestCase;
911
use Psr\Http\Server\RequestHandlerInterface;
1012
use Psr\Log\LoggerInterface;
1113
use RuntimeException;
12-
use Zend\Diactoros\Response;
13-
use Zend\Diactoros\ServerRequest;
1414

1515
/**
1616
* @coversDefaultClass \Lcobucci\ErrorHandling\ErrorLoggingMiddleware

0 commit comments

Comments
 (0)