Skip to content

Commit

Permalink
fix: nullable create
Browse files Browse the repository at this point in the history
  • Loading branch information
phpsa authored Jun 16, 2022
1 parent 6d744db commit a1b6950
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HashedSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function __construct(array $config)
}


public function create(string $value, string $saltModifier = ""): ?string
public function create(?string $value, string $saltModifier = ""): ?string
{
//Nothing to hash here!
if (strlen($value) === 0 || $value === null) {
Expand Down

0 comments on commit a1b6950

Please sign in to comment.