Skip to content

Commit 7322a52

Browse files
committed
fix repository::get non discrim resolves a boolean instead of the item
1 parent e55864e commit 7322a52

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Discord/Repository/AbstractRepository.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,8 @@ public function get(string $discrim, $key)
375375
continue;
376376
}
377377

378-
if ($resolved = nowait($this->cache->get($offset)) !== null) {
378+
$resolved = nowait($this->cache->get($offset));
379+
if ($resolved !== null) {
379380
return $resolved;
380381
}
381382
break;

0 commit comments

Comments
 (0)