Skip to content

Commit a03d3c2

Browse files
committed
add readonly to properties
1 parent 45ba0f8 commit a03d3c2

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/StaticFileMiddleware.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,20 @@
1313

1414
final class StaticFileMiddleware implements MiddlewareInterface
1515
{
16-
private string $hashAlgorithm;
16+
private readonly string $hashAlgorithm;
1717

1818
/**
1919
* @var array<string, string>
2020
*/
21-
private array $mimetypes;
21+
private readonly array $mimetypes;
2222

2323
/**
2424
* @param null|array<string, string> $mimetypes
2525
*/
2626
public function __construct(
27-
private ResponseFactoryInterface $responseFactory,
28-
private StreamFactoryInterface $streamFactory,
29-
private string $publicDirectory,
27+
private readonly ResponseFactoryInterface $responseFactory,
28+
private readonly StreamFactoryInterface $streamFactory,
29+
private readonly string $publicDirectory,
3030
string $hashAlgorithm = 'md5',
3131
?array $mimetypes = null,
3232
) {

0 commit comments

Comments
 (0)