Skip to content

Commit

Permalink
encoding functions returns non-empty-string
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Aug 30, 2022
1 parent 493284c commit 9fc3872
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions stubs/core.stub
Expand Up @@ -47,3 +47,31 @@ function highlight_string($var, bool $return = false) {}
* @return ($return is true ? string : true)
*/
function print_r($var, bool $return = false) {}

/**
* @template T as string
* @param T $string
* @return (T is non-empty-string ? non-empty-string : string)
*/
function sodium_bin2base64(string $string, int $id): string

/**
* @template T as string
* @param T $string
* @return (T is non-empty-string ? non-empty-string : string)
*/
function sodium_bin2hex(string $string): string {}

/**
* @template T as string
* @param T $string
* @return (T is non-empty-string ? non-empty-string : string)
*/
function base64_encode(string $string) : string {}

/**
* @template T as string
* @param T $string
* @return (T is non-empty-string ? non-empty-string : string)
*/
function bin2hex(string $string): string {}

0 comments on commit 9fc3872

Please sign in to comment.