Skip to content

Commit c89b604

Browse files
committed
Fix type for maxAge
1 parent 7270a6d commit c89b604

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
},
3333
"scripts": {
3434
"test": "phpunit",
35-
"analyse": "phpstan analyse src tests --level=4",
35+
"analyse": "phpstan analyse src tests --level=5",
3636
"check-style": "phpcs -p --standard=PSR12 --exclude=Generic.Files.LineLength --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1 src tests",
3737
"fix-style": "phpcbf -p --standard=PSR12 --exclude=Generic.Files.LineLength --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1 src tests"
3838
},

src/CorsService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ private function configureExposedHeaders(Response $response, Request $request)
258258
private function configureMaxAge(Response $response, Request $request)
259259
{
260260
if ($this->options['maxAge'] !== null) {
261-
$response->headers->set('Access-Control-Max-Age', (int) $this->options['maxAge']);
261+
$response->headers->set('Access-Control-Max-Age', (string) $this->options['maxAge']);
262262
}
263263
}
264264

0 commit comments

Comments
 (0)