Skip to content

Commit

Permalink
Static analysis fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PHLAK committed Mar 20, 2020
1 parent 34eabed commit d309379
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/Encodable.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function hex(string $mode = Config\Hex::ENCODE): self

case Config\Hex::DECODE:
$string = preg_replace_callback('/\\\\x([0-9A-Fa-f]+)/', function (array $matched) {
return (string) mb_chr(hexdec($matched[1]), $this->encoding);
return (string) mb_chr((int) hexdec($matched[1]), $this->encoding);
}, $this->string);
break;

Expand Down

0 comments on commit d309379

Please sign in to comment.