Dep: update

주로 PHAN
This commit is contained in:
Hide_D committed 2021-08-06 22:39:09 +09:00
1 parent 5310c2e7f6
commit b306601c72
1098 files changed
+92137 -33228

No files matched your search

+14
View File
@@ -50,6 +50,19 @@ final class Lock implements LockInterface, LoggerAwareInterface
$this->logger = new NullLogger();
}
/**
* @return array
*/
public function __sleep()
{
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);
}
public function __wakeup()
{
throw new \BadMethodCallException('Cannot unserialize '.__CLASS__);
}
/**
* Automatically releases the underlying lock when the object is destructed.
*/
@@ -67,6 +80,7 @@ final class Lock implements LockInterface, LoggerAwareInterface
*/
public function acquire($blocking = false): bool
{
$this->key->resetLifetime();
try {
if ($blocking) {
if (!$this->store instanceof StoreInterface && !$this->store instanceof BlockingStoreInterface) {