We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45ba0f8 commit a03d3c2Copy full SHA for a03d3c2
1 file changed
src/StaticFileMiddleware.php
@@ -13,20 +13,20 @@
13
14
final class StaticFileMiddleware implements MiddlewareInterface
15
{
16
- private string $hashAlgorithm;
+ private readonly string $hashAlgorithm;
17
18
/**
19
* @var array<string, string>
20
*/
21
- private array $mimetypes;
+ private readonly array $mimetypes;
22
23
24
* @param null|array<string, string> $mimetypes
25
26
public function __construct(
27
- private ResponseFactoryInterface $responseFactory,
28
- private StreamFactoryInterface $streamFactory,
29
- private string $publicDirectory,
+ private readonly ResponseFactoryInterface $responseFactory,
+ private readonly StreamFactoryInterface $streamFactory,
+ private readonly string $publicDirectory,
30
string $hashAlgorithm = 'md5',
31
?array $mimetypes = null,
32
) {
0 commit comments