Skip to content

Commit e67a4f7

Browse files
committed
Allowing id conversion to throw error even when passed a possible ID64
Related to #41
1 parent 0973d40 commit e67a4f7

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/Syntax/SteamApi/Client.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -258,12 +258,10 @@ private function convertSteamIdTo64()
258258
{
259259
if (is_array($this->steamId)) {
260260
array_walk($this->steamId, function (&$id) {
261-
if (strpos($id, ':') !== false) {
262-
// Convert the id to all types and grab the 64 bit version
263-
$id = $this->convertToAll($id)->id64;
264-
}
261+
// Convert the id to all types and grab the 64 bit version
262+
$id = $this->convertToAll($id)->id64;
265263
});
266-
} elseif (strpos(':', $this->steamId) !== false) {
264+
} else {
267265
// Convert the id to all types and grab the 64 bit version
268266
$this->steamId = $this->convertToAll($this->steamId)->id64;
269267
}

0 commit comments

Comments
 (0)