8000 [HttpKernel] Backport type fixes · symfony/symfony@50b09a7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 50b09a7

Browse files
committed
[HttpKernel] Backport type fixes
Signed-off-by: Alexander M. Turek <me@derrabus.de>
1 parent a1620e8 commit 50b09a7

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/Symfony/Component/HttpKernel/EventListener/LocaleAwareListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class LocaleAwareListener implements EventSubscriberInterface
2929
private $requestStack;
3030

3131
/**
32-
* @param LocaleAwareInterface[] $localeAwareServices
32+
* @param iterable<mixed, LocaleAwareInterface> $localeAwareServices
3333
*/
3434
public function __construct(iterable $localeAwareServices, RequestStack $requestStack)
3535
{

src/Symfony/Component/HttpKernel/HttpCache/Store.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ class Store implements StoreInterface
2626
{
2727
protected $root;
2828
private $keyCache;
29-
private $locks;
29+
30+
/**
31+
* @var array<string, resource>
32+
*/
33+
private $locks = [];
3034

3135
/**
3236
* @throws \RuntimeException
@@ -38,7 +42,6 @@ public function __construct(string $root)
3842
throw new \RuntimeException(sprintf('Unable to create the store directory (%s).', $this->root));
3943
}
4044
$this->keyCache = new \SplObjectStorage();
41-
$this->locks = [];
4245
}
4346

4447
/**

0 commit comments

Comments
 (0)
0