mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-12 01:54:41 +08:00
Update to PHPStan 2.0
This commit is contained in:
@@ -11,8 +11,8 @@ use Doctrine\ORM\Events;
|
||||
use Shlinkio\Shlink\Core\Config\Options\UrlShortenerOptions;
|
||||
use Shlinkio\Shlink\Core\Domain\Entity\Domain;
|
||||
use Shlinkio\Shlink\Core\Tag\Entity\Tag;
|
||||
use Symfony\Component\Lock\Lock;
|
||||
use Symfony\Component\Lock\LockFactory;
|
||||
use Symfony\Component\Lock\SharedLockInterface;
|
||||
use Symfony\Component\Lock\Store\InMemoryStore;
|
||||
|
||||
use function array_map;
|
||||
@@ -24,9 +24,9 @@ class PersistenceShortUrlRelationResolver implements ShortUrlRelationResolverInt
|
||||
private array $memoizedNewDomains = [];
|
||||
/** @var array<string, Tag> */
|
||||
private array $memoizedNewTags = [];
|
||||
/** @var array<string, Lock> */
|
||||
/** @var array<string, SharedLockInterface> */
|
||||
private array $tagLocks = [];
|
||||
/** @var array<string, Lock> */
|
||||
/** @var array<string, SharedLockInterface> */
|
||||
private array $domainLocks = [];
|
||||
|
||||
public function __construct(
|
||||
@@ -100,7 +100,7 @@ class PersistenceShortUrlRelationResolver implements ShortUrlRelationResolverInt
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array<string, Lock> $locks
|
||||
* @param array<string, SharedLockInterface> $locks
|
||||
*/
|
||||
private function lock(array &$locks, string $name): void
|
||||
{
|
||||
@@ -112,7 +112,7 @@ class PersistenceShortUrlRelationResolver implements ShortUrlRelationResolverInt
|
||||
|
||||
/**
|
||||
/**
|
||||
* @param array<string, Lock> $locks
|
||||
* @param array<string, SharedLockInterface> $locks
|
||||
*/
|
||||
private function releaseLock(array &$locks, string $name): void
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user