Skip to content

Commit f608f39

Browse files
authored
Support PHP 8.4 & 8.5 in CI (#60)
* Remove .travis.yml * Support PHP 8.4 & 8.5 in CI
1 parent 4c528f1 commit f608f39

File tree

3 files changed

+6
-32
lines changed

3 files changed

+6
-32
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ jobs:
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
php: [7.4, 8.0, 8.1, 8.2, 8.3]
12+
php: [7.4, 8.0, 8.1, 8.2, 8.3, 8.4, 8.5]
1313
include:
14-
- php: 8.2
14+
- php: 8.4
1515
analysis: true
1616

1717
steps:

.travis.yml

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

tests/CacheTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ protected function createResponse(): ResponseInterface
4343
*
4444
* @return RequestHandlerInterface
4545
*/
46-
protected function createRequestHandler(ResponseInterface $response = null): RequestHandlerInterface
46+
protected function createRequestHandler(?ResponseInterface $response): RequestHandlerInterface
4747
{
4848
$response = $response ?? $this->createResponse();
4949

@@ -67,7 +67,7 @@ public function testCacheControlHeader()
6767
$cache = new Cache('public', 86400);
6868
$req = $this->requestFactory();
6969

70-
$res = $cache->process($req, $this->createRequestHandler());
70+
$res = $cache->process($req, $this->createRequestHandler(null));
7171

7272
$cacheControl = $res->getHeaderLine('Cache-Control');
7373

@@ -79,7 +79,7 @@ public function testCacheControlHeaderWithMustRevalidate()
7979
$cache = new Cache('private', 86400, true);
8080
$req = $this->requestFactory();
8181

82-
$res = $cache->process($req, $this->createRequestHandler());
82+
$res = $cache->process($req, $this->createRequestHandler(null));
8383

8484
$cacheControl = $res->getHeaderLine('Cache-Control');
8585

@@ -91,7 +91,7 @@ public function testCacheControlHeaderWithZeroMaxAge()
9191
$cache = new Cache('private', 0, false);
9292
$req = $this->requestFactory();
9393

94-
$res = $cache->process($req, $this->createRequestHandler());
94+
$res = $cache->process($req, $this->createRequestHandler(null));
9595

9696
$cacheControl = $res->getHeaderLine('Cache-Control');
9797

0 commit comments

Comments
 (0)