Skip to content

Commit 84e0607

Browse files
Remove type check for array LockInterface
1 parent 2d18f6c commit 84e0607

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/Symfony/Component/Semaphore/Store/LockStore.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -128,15 +128,6 @@ private function getLocks(Key $key, float $ttlInSecond, bool $create): array
128128
$key->setState(__CLASS__, $locks);
129129
} elseif ($key->hasState(__CLASS__)) {
130130
$locks = $key->getState(__CLASS__);
131-
\assert((function () use ($locks) {
132-
foreach ($locks as $lock) {
133-
if (!$lock instanceof LockInterface) {
134-
return false;
135-
}
136-
}
137-
138-
return true;
139-
})() === true, 'Locks must be an array of LockInterface');
140131
}
141132

142133
return $locks;

0 commit comments

Comments
 (0)