Skip to content

Commit b58dc7a

Browse files
authoredOct 16, 2024··
Merge pull request #72 from gsteel/PHP-8.4
Add Support for PHP 8.4
2 parents c4ace0f + 2bf2d32 commit b58dc7a

File tree

5 files changed

+52
-44
lines changed

5 files changed

+52
-44
lines changed
 

‎.laminas-ci.json

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
{
2+
"ignore_php_platform_requirements": {
3+
"8.4": true
4+
},
25
"backwardCompatibilityCheck": true
36
}

‎composer.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,18 @@
3333
}
3434
},
3535
"require": {
36-
"php": "~8.1.0 || ~8.2.0 || ~8.3.0",
36+
"php": "~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0",
3737
"ext-json": "*",
3838
"dflydev/fig-cookies": "^3.0",
3939
"psr/container": "^1.0 || ^2.0",
4040
"psr/http-server-middleware": "^1.0"
4141
},
4242
"require-dev": {
4343
"laminas/laminas-coding-standard": "~2.5.0",
44-
"laminas/laminas-diactoros": "^3.3.0",
45-
"phpunit/phpunit": "^10.5.10",
44+
"laminas/laminas-diactoros": "^3.4.0",
45+
"phpunit/phpunit": "^10.5.36",
4646
"psalm/plugin-phpunit": "^0.19.0",
47-
"vimeo/psalm": "^5.21.1"
47+
"vimeo/psalm": "^5.26.1"
4848
},
4949
"suggest": {
5050
"mezzio/mezzio-csrf": "^1.0 || ^1.0-dev for CSRF protection capabilities",

‎composer.lock

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎phpunit.xml.dist

+5
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,15 @@
77
cacheDirectory=".phpunit.cache"
88
displayDetailsOnTestsThatTriggerErrors="true"
99
displayDetailsOnTestsThatTriggerDeprecations="true"
10+
displayDetailsOnPhpunitDeprecations="true"
1011
displayDetailsOnTestsThatTriggerNotices="true"
1112
displayDetailsOnTestsThatTriggerWarnings="true"
1213
displayDetailsOnIncompleteTests="true"
1314
displayDetailsOnSkippedTests="true"
15+
failOnPhpunitDeprecation="true"
16+
failOnWarning="true"
17+
failOnNotice="true"
18+
failOnDeprecation="true"
1419
>
1520
<source>
1621
<include>

‎test/Persistence/CacheHeadersGeneratorTraitTest.php

+36-36
Original file line numberDiff line numberDiff line change
@@ -250,12 +250,12 @@ private static function assertEqualDateWithDelta(string $expect, string $actual,
250250

251251
/**
252252
* @return array<string, array{
253-
* cache_expire: int,
254-
* cache_limiter: string,
255-
* expected_expires: string,
256-
* expected_last_modified: string,
257-
* expected_cache_control: string,
258-
* expected_pragma: string,
253+
* cacheExpire: int,
254+
* cacheLimiter: string,
255+
* expectedExpires: string,
256+
* expectedLastModified: string,
257+
* expectedCacheControl: string,
258+
* expectedPragma: string,
259259
* }>
260260
*/
261261
public static function provideCacheLimiterValues(): array
@@ -266,44 +266,44 @@ public static function provideCacheLimiterValues(): array
266266

267267
return [
268268
'empty' => [
269-
'cache_expire' => $cacheExpire,
270-
'cache_limiter' => '',
271-
'expected_expires' => '',
272-
'expected_last_modified' => '',
273-
'expected_cache_control' => '',
274-
'expected_pragma' => '',
269+
'cacheExpire' => $cacheExpire,
270+
'cacheLimiter' => '',
271+
'expectedExpires' => '',
272+
'expectedLastModified' => '',
273+
'expectedCacheControl' => '',
274+
'expectedPragma' => '',
275275
],
276276
'not-valid' => [
277-
'cache_expire' => $cacheExpire,
278-
'cache_limiter' => 'not-valid',
279-
'expected_expires' => '',
280-
'expected_last_modified' => '',
281-
'expected_cache_control' => '',
282-
'expected_pragma' => '',
277+
'cacheExpire' => $cacheExpire,
278+
'cacheLimiter' => 'not-valid',
279+
'expectedExpires' => '',
280+
'expectedLastModified' => '',
281+
'expectedCacheControl' => '',
282+
'expectedPragma' => '',
283283
],
284284
'nocache' => [
285-
'cache_expire' => $cacheExpire,
286-
'cache_limiter' => 'nocache',
287-
'expected_expires' => Http::CACHE_PAST_DATE,
288-
'expected_last_modified' => '',
289-
'expected_cache_control' => 'no-store, no-cache, must-revalidate',
290-
'expected_pragma' => 'no-cache',
285+
'cacheExpire' => $cacheExpire,
286+
'cacheLimiter' => 'nocache',
287+
'expectedExpires' => Http::CACHE_PAST_DATE,
288+
'expectedLastModified' => '',
289+
'expectedCacheControl' => 'no-store, no-cache, must-revalidate',
290+
'expectedPragma' => 'no-cache',
291291
],
292292
'public' => [
293-
'cache_expire' => $cacheExpire,
294-
'cache_limiter' => 'public',
295-
'expected_expires' => gmdate(Http::DATE_FORMAT, time() + (60 * $cacheExpire)),
296-
'expected_last_modified' => (string) $lastModified,
297-
'expected_cache_control' => 'public, max-age=' . $maxAge,
298-
'expected_pragma' => '',
293+
'cacheExpire' => $cacheExpire,
294+
'cacheLimiter' => 'public',
295+
'expectedExpires' => gmdate(Http::DATE_FORMAT, time() + (60 * $cacheExpire)),
296+
'expectedLastModified' => (string) $lastModified,
297+
'expectedCacheControl' => 'public, max-age=' . $maxAge,
298+
'expectedPragma' => '',
299299
],
300300
'private' => [
301-
'cache_expire' => $cacheExpire,
302-
'cache_limiter' => 'private',
303-
'expected_expires' => Http::CACHE_PAST_DATE,
304-
'expected_last_modified' => (string) $lastModified,
305-
'expected_cache_control' => 'private, max-age=' . $maxAge,
306-
'expected_pragma' => '',
301+
'cacheExpire' => $cacheExpire,
302+
'cacheLimiter' => 'private',
303+
'expectedExpires' => Http::CACHE_PAST_DATE,
304+
'expectedLastModified' => (string) $lastModified,
305+
'expectedCacheControl' => 'private, max-age=' . $maxAge,
306+
'expectedPragma' => '',
307307
],
308308
];
309309
}

0 commit comments

Comments
 (0)
Please sign in to comment.