Skip to content

Commit 427352d

Browse files
authored
Bugfix: Update HashidService.php (#466)
* Update HashidService.php * Update HashidService.php
1 parent c8529b9 commit 427352d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/Services/HashidService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public static function decode(string $encoded): string
6363
{
6464
self::init();
6565

66-
if (empty($encoded)) {
66+
if ($encoded === '') {
6767
throw new InvalidArgumentException('Encoded string cannot be empty');
6868
}
6969

0 commit comments

Comments
 (0)