Replace disallowed operators in src/item/

This commit is contained in:
Dylan K. Taylor
2022-01-20 19:16:50 +00:00
parent 373880e582
commit 22fb02c4e6
11 changed files with 25 additions and 25 deletions

View File

@@ -31,7 +31,7 @@ final class ItemIdentifier{
private $meta;
public function __construct(int $id, int $meta){
if($id < -0x8000 or $id > 0x7fff){ //signed short range
if($id < -0x8000 || $id > 0x7fff){ //signed short range
throw new \InvalidArgumentException("ID must be in range " . -0x8000 . " - " . 0x7fff);
}
$this->id = $id;