mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-11-29 18:27:44 +08:00
Fixed bug that the file name should be an empty string by default for Hyperf\Memory\LockManager
.
This commit is contained in:
parent
1f7ba04f18
commit
d207fab298
@ -1,5 +1,9 @@
|
|||||||
# v2.2.29 - TBD
|
# v2.2.29 - TBD
|
||||||
|
|
||||||
|
## Fixed
|
||||||
|
|
||||||
|
- [#4620](https://github.com/hyperf/hyperf/pull/4620) Fixed bug that the file name should be an empty string by default for `Hyperf\Memory\LockManager`.
|
||||||
|
|
||||||
# v2.2.28 - 2022-03-14
|
# v2.2.28 - 2022-03-14
|
||||||
|
|
||||||
## Fixed
|
## Fixed
|
||||||
|
@ -25,7 +25,7 @@ class LockManager
|
|||||||
/**
|
/**
|
||||||
* You should initialize a Lock with the identifier before use it.
|
* You should initialize a Lock with the identifier before use it.
|
||||||
*/
|
*/
|
||||||
public static function initialize(string $identifier, int $type = SWOOLE_RWLOCK, string $filename = null): void
|
public static function initialize(string $identifier, int $type = SWOOLE_RWLOCK, string $filename = ''): void
|
||||||
{
|
{
|
||||||
static::$container[$identifier] = new Lock($type, $filename);
|
static::$container[$identifier] = new Lock($type, $filename);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user