Skip to content

Commit a5c7126

Browse files
authored
修复getLong方法的逻辑判断错误
修复getLong方法的逻辑判断错误
1 parent 9f98996 commit a5c7126

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/AtomicManager.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function addLong($name,int $int = 0)
3838

3939
function getLong($name):?Long
4040
{
41-
if(!isset($this->listForLong[$name])){
41+
if(isset($this->listForLong[$name])){
4242
return $this->listForLong[$name];
4343
}else{
4444
return null;
@@ -53,4 +53,4 @@ function get($name):?Atomic
5353
return null;
5454
}
5555
}
56-
}
56+
}

0 commit comments

Comments
 (0)