Skip to content

Commit

Permalink
Switched arguments order for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshyPHP committed Apr 9, 2024
1 parent 71459eb commit a519519
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Decoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ protected function decodeDictionary(): ArrayObject
'5' => $this->decodeFastString('5:files', 7, 'files' ),
default => $this->decodeString()
};
if (strcmp($lastKey, $key) >= 0 && !empty($values))
if (strcmp($key, $lastKey) <= 0 && !empty($values))
{
$this->dictionaryComplianceError($key, $lastKey);
}
Expand Down

0 comments on commit a519519

Please sign in to comment.