fix:更新已知bug,优化代码
This commit is contained in:
@@ -394,7 +394,7 @@ trait AbstractAdapterTrait
|
||||
$this->ids[$key] = $key;
|
||||
|
||||
if (\count($this->ids) > 1000) {
|
||||
array_splice($this->ids, 0, 500); // stop memory leak if there are many keys
|
||||
$this->ids = \array_slice($this->ids, 500, null, true); // stop memory leak if there are many keys
|
||||
}
|
||||
|
||||
if (null === $this->maxIdLength) {
|
||||
|
||||
Reference in New Issue
Block a user