Skip to content

Commit

Permalink
fix phpdoc types for encode method (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamband authored Feb 20, 2023
1 parent aad5737 commit 8494b7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Hashids.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function __construct(
/**
* Encode parameters to generate a hash.
*
* @param string|array<int, string> $numbers
* @param int|string|array<int, int|string> $numbers
*/
public function encode(...$numbers): string
{
Expand Down
2 changes: 1 addition & 1 deletion src/HashidsInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ interface HashidsInterface
{
/**
* Encode parameters to generate a hash.
* @param string|array<int, string> $numbers
* @param int|string|array<int, int|string> $numbers
*/
public function encode(...$numbers): string;

Expand Down

0 comments on commit 8494b7f

Please sign in to comment.